/** * @expectedException \Exception */ public function testRoot() { $f = new Finder(); $f->setRoot(__DIR__ . '/../resources'); $expected = realpath(__DIR__ . '/../resources'); $this->assertEquals($expected, $f->getRoot()); $f->addPath(__DIR__); }
/** * @expectedException \Exception */ public function testRoot() { $f = new Finder(); $f->setRoot(__DIR__ . '/../resources'); $expected = realpath(__DIR__ . '/../resources'); $this->assertEquals($expected, $f->getRoot()); $f->addPath(__DIR__); }