You are here

public function ClassCollectionLoaderTest::testFixNamespaceDeclarations in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/class-loader/Tests/ClassCollectionLoaderTest.php \Symfony\Component\ClassLoader\Tests\ClassCollectionLoaderTest::testFixNamespaceDeclarations()

@dataProvider getFixNamespaceDeclarationsData

File

vendor/symfony/class-loader/Tests/ClassCollectionLoaderTest.php, line 184

Class

ClassCollectionLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

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