public function ClassCollectionLoaderTest::getFixNamespaceDeclarationsDataWithoutTokenizer in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\ClassLoader\TestsCode
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",
),
);
}