You are here

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

File

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

Class

ClassCollectionLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

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