getPaths() public method

Returns stack of paths
public getPaths ( ) : Zend\Stdlib\SplStack
return Zend\Stdlib\SplStack
Exemplo n.º 1
0
 public function testSetPaths()
 {
     $resolver = new PathStackResolver();
     $resolver->setPaths(array('dir2', 'dir1'));
     // order inverted because of how a stack is traversed
     $this->assertSame(array('dir1' . DIRECTORY_SEPARATOR, 'dir2' . DIRECTORY_SEPARATOR), $resolver->getPaths()->toArray());
     $paths = new ArrayObject(array('dir4', 'dir3'));
     $resolver->setPaths($paths);
     $this->assertSame(array('dir3' . DIRECTORY_SEPARATOR, 'dir4' . DIRECTORY_SEPARATOR), $resolver->getPaths()->toArray());
     $this->setExpectedException('AssetManager\\Exception\\InvalidArgumentException');
     $resolver->setPaths('invalid');
 }