You are here

public function Twig_Tests_Loader_FilesystemTest::testGetNamespaces in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php \Twig_Tests_Loader_FilesystemTest::testGetNamespaces()

File

vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php, line 95

Class

Twig_Tests_Loader_FilesystemTest

Code

public function testGetNamespaces() {
  $loader = new Twig_Loader_Filesystem(sys_get_temp_dir());
  $this
    ->assertEquals(array(
    Twig_Loader_Filesystem::MAIN_NAMESPACE,
  ), $loader
    ->getNamespaces());
  $loader
    ->addPath(sys_get_temp_dir(), 'named');
  $this
    ->assertEquals(array(
    Twig_Loader_Filesystem::MAIN_NAMESPACE,
    'named',
  ), $loader
    ->getNamespaces());
}