Skip to content

Commit d4e912e

Browse files
committed
feat(PhpAstExtractorTest): create testCanBeExtracted()
1 parent 485f5d3 commit d4e912e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public function testExtractFiles(iterable|string $resource)
4040
], $catalogue->getMetadata('example'));
4141
}
4242

43+
public function testCanBeExtracted()
44+
{
45+
$extractor = new PhpAstExtractor([new TransMethodVisitor()]);
46+
$phpFiles = glob(self::FIXTURES_FOLDER.'*.php');
47+
48+
foreach ($phpFiles as $file) {
49+
$this->assertTrue($extractor->canBeExtracted($file), sprintf('Current PHP file: %s', $file));
50+
}
51+
}
52+
4353
public static function resourcesProvider(): \Generator
4454
{
4555
$phpFiles = [];

0 commit comments

Comments
 (0)