We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485f5d3 commit d4e912eCopy full SHA for d4e912e
src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php
@@ -40,6 +40,16 @@ public function testExtractFiles(iterable|string $resource)
40
], $catalogue->getMetadata('example'));
41
}
42
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
53
public static function resourcesProvider(): \Generator
54
{
55
$phpFiles = [];
0 commit comments