Skip to content

Commit 5da6147

Browse files
committed
feat(PhpAstExtractorTest): testExtractFiles() > complete sources in assertion
1 parent 273d712 commit 5da6147

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ public function testExtractFiles(iterable|string $resource)
3131
$extractor->extract($resource, $catalogue);
3232

3333
$this->assertEquals(['messages' => ['example' => 'example']], $catalogue->all());
34-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translation.html.php:1']], $catalogue->getMetadata('example'));
34+
$this->assertEqualsCanonicalizing([
35+
'sources' => [
36+
self::FIXTURES_FOLDER.'translation.html.php:1',
37+
self::FIXTURES_FOLDER.'translatable-short.html.php:1',
38+
self::FIXTURES_FOLDER.'translatable-short-fqn.html.php:1',
39+
],
40+
], $catalogue->getMetadata('example'));
3541
}
3642

3743
public static function resourcesProvider(): \Generator

0 commit comments

Comments
 (0)