1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Fixed PSR violations for classes not matching the namespace of a rule being hidden, fixes #11957

This commit is contained in:
Jordi Boggiano 2024-05-31 15:08:44 +02:00
parent c1be804a0c
commit dc857b4f91
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
4 changed files with 49 additions and 33 deletions

View file

@ -62,7 +62,7 @@ class DumpAutoloadCommandTest extends TestCase
self::assertSame(1, $appTester->run(['command' => 'dump-autoload', '--optimize' => true, '--strict-psr' => true]));
$output = $appTester->getDisplay(true);
self::assertMatchesRegularExpression('/Class Application\\\Src\\\Foo located in .*? does not comply with psr-4 autoloading standard. Skipping./', $output);
self::assertMatchesRegularExpression('#Class Application\\\\Src\\\\Foo located in .*? does not comply with psr-4 autoloading standard \(rule: Application\\\\ => \./src\)\. Skipping\.#', $output);
}
public function testUsingClassmapAuthoritative(): void