You are here

public function ClassCollectionLoaderTest::testFixNamespaceDeclarationsWithoutTokenizer in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ClassCollectionLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testFixNamespaceDeclarationsWithoutTokenizer($source, $expected) {
  ClassCollectionLoader::enableTokenizer(false);
  $this
    ->assertEquals('<?php ' . $expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php ' . $source));
  ClassCollectionLoader::enableTokenizer(true);
}