public function ClassCollectionLoaderTest::testFixNamespaceDeclarationsWithoutTokenizer

@dataProvider getFixNamespaceDeclarationsDataWithoutTokenizer

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php, line 172

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);
}