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:
parent
c1be804a0c
commit
dc857b4f91
4 changed files with 49 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue