public function testConstructorException() { $this->setExpectedException('UnexpectedValueException'); $d = new Dir(__DIR__ . '/../baddir'); }