public function testSetPathsOverwritesStack()
 {
     $this->stack->addPath(__DIR__ . '/Helper');
     $paths = array(TemplatePathStack::normalizePath(__DIR__), TemplatePathStack::normalizePath(__DIR__ . '/_files'));
     $this->stack->setPaths($paths);
     $this->assertEquals(array_reverse($paths), $this->stack->getPaths()->toArray());
 }
 /**
  * Add a path for template
  *
  * @param string $path
  * @param string $namespace
  */
 public function addPath($path, $namespace = null)
 {
     $this->resolver->addPath($path);
     // Normalize the path to be compliant with the TemplatePathStack
     $this->paths[TemplatePathStack::normalizePath($path)] = $namespace;
 }