/** * @expectedException \Exception */ public function testInvalidRoot() { $f = new Finder(); $f->setRoot('not a path'); }