File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
tests/TestCheck/Fixtures/EveryTestHasSameNamespaceAsCoveredClass/tests Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function run(TestCase $testCaseContext): void
5353 ));
5454 }
5555
56- if ($ matchesCoversNothing ) {
56+ if ($ matchesCoversNothing || $ matchesCovers ) {
5757 continue ;
5858 }
5959
@@ -75,14 +75,6 @@ public function run(TestCase $testCaseContext): void
7575 continue ;
7676 }
7777
78- if (class_exists ($ classNameWithoutSuffix )) {
79- continue ;
80- }
81-
82- if ($ coversMatches [0 ] !== []) {
83- continue ;
84- }
85-
8678 $ testCaseContext ::fail (
8779 sprintf (
8880 'Test "%s" is in the wrong namespace, ' .
Original file line number Diff line number Diff line change 55namespace Cdn77 \TestUtils \Tests \Tests \TestCheck \Fixtures \EveryTestHasSameNamespaceAsCoveredClass ;
66
77// phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
8- /** @coversDefaultClass Cdn77\TestUtils\Tests\TestCheck\Fixtures\EveryTestHasSameNamespaceAsCoveredClass\SameNamespace */
8+ /** @coversDefaultClass \ Cdn77\TestUtils\Tests\TestCheck\Fixtures\EveryTestHasSameNamespaceAsCoveredClass\SameNamespace */
99final class CoversDefaultClassTest
1010{
1111}
You can’t perform that action at this time.
0 commit comments