You are here

public function ClassCollectionLoaderTest::getFixNamespaceDeclarationsDataWithoutTokenizer 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::getFixNamespaceDeclarationsDataWithoutTokenizer()

File

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

Class

ClassCollectionLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function getFixNamespaceDeclarationsDataWithoutTokenizer() {
  return array(
    array(
      "namespace;\nclass Foo {}\n",
      "namespace\n{\nclass Foo {}\n}\n",
    ),
    array(
      "namespace Foo;\nclass Foo {}\n",
      "namespace Foo\n{\nclass Foo {}\n}\n",
    ),
    array(
      "namespace   Bar ;\nclass Foo {}\n",
      "namespace   Bar\n{\nclass Foo {}\n}\n",
    ),
    array(
      "namespace Foo\\Bar;\nclass Foo {}\n",
      "namespace Foo\\Bar\n{\nclass Foo {}\n}\n",
    ),
    array(
      "namespace Foo\\Bar\\Bar\n{\nclass Foo {}\n}\n",
      "namespace Foo\\Bar\\Bar\n{\nclass Foo {}\n}\n",
    ),
    array(
      "namespace\n{\nclass Foo {}\n}\n",
      "namespace\n{\nclass Foo {}\n}\n",
    ),
  );
}