public function testConstructFailsIfTheDirDoesNotExsist() { $this->setExpectedException('\\Exception', 'The directory "/dar" does not exist, or we cannot access it'); new BuildGenerator('/dar', null); }