public function ClassCollectionLoaderTest::testFixNamespaceDeclarationsWithoutTokenizer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/class-loader/Tests/ClassCollectionLoaderTest.php \Symfony\Component\ClassLoader\Tests\ClassCollectionLoaderTest::testFixNamespaceDeclarationsWithoutTokenizer()
@dataProvider getFixNamespaceDeclarationsDataWithoutTokenizer
File
- vendor/
symfony/ class-loader/ Tests/ ClassCollectionLoaderTest.php, line 204
Class
Namespace
Symfony\Component\ClassLoader\TestsCode
public function testFixNamespaceDeclarationsWithoutTokenizer($source, $expected) {
ClassCollectionLoader::enableTokenizer(false);
$this
->assertEquals('<?php ' . $expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php ' . $source));
ClassCollectionLoader::enableTokenizer(true);
}