feat: deprecates only feature

This commit is contained in:
Nuno Maduro
2023-02-14 08:40:02 +00:00
parent ea6af719e0
commit a61db76c24
8 changed files with 8 additions and 88 deletions

View File

@ -54,13 +54,7 @@ final class TestRepository
*/
public function getFilenames(): array
{
$testCases = array_filter($this->testCases, static fn (TestCaseFactory $testCase): bool => $testCase->methodsUsingOnly() !== []);
if ($testCases === []) {
$testCases = $this->testCases;
}
return array_values(array_map(static fn (TestCaseFactory $factory): string => $factory->filename, $testCases));
return array_values(array_map(static fn (TestCaseFactory $factory): string => $factory->filename, $this->testCases));
}
/**