addPath() public method

{@inheritDoc}
public addPath ( $path )
 public function testWillRefuseInvalidPath()
 {
     $resolver = new PrioritizedPathsResolver();
     $this->setExpectedException('AssetManager\\Exception\\InvalidArgumentException');
     $resolver->addPath(null);
 }
 /**
  * Test Collect returns valid list of assets
  *
  * @covers \AssetManager\Resolver\PrioritizedPathsResolver::collect
  */
 public function testCollectDirectory()
 {
     $resolver = new PrioritizedPathsResolver();
     $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());
 }