AssetManager\Resolver\PrioritizedPathsResolver::clearPaths PHP Method

clearPaths() public method

{@inheritDoc}
public clearPaths ( )
    public function clearPaths()
    {
        $this->paths = new PriorityQueue();
    }

Usage Example

 public function testClearPaths()
 {
     $resolver = new PrioritizedPathsResolver();
     $resolver->addPath('someDir');
     $paths = $resolver->getPaths();
     $this->assertEquals('someDir' . DIRECTORY_SEPARATOR, $paths->top());
     $resolver->clearPaths();
     $this->assertEquals(array(), $resolver->getPaths()->toArray());
 }