addPath() public method

Add a single path to the stack
public addPath ( string $path )
$path string
 public function testWillRefuseInvalidPath()
 {
     $resolver = new PathStackResolver();
     $this->setExpectedException('AssetManager\\Exception\\InvalidArgumentException');
     $resolver->addPath(null);
 }
 /**
  * Test Collect returns valid list of assets
  *
  * @covers \AssetManager\Resolver\PathStackResolver::collect
  */
 public function testCollectDirectory()
 {
     $resolver = new PathStackResolver();
     $resolver->addPath(realpath(__DIR__ . '/../'));
     $dir = substr(__DIR__, strrpos(__DIR__, '/', 0) + 1);
     $this->assertContains($dir . DIRECTORY_SEPARATOR . basename(__FILE__), $resolver->collect());
     $this->assertNotContains($dir . DIRECTORY_SEPARATOR . 'i-do-not-exist.php', $resolver->collect());
 }