public function testConstructFailsIfTheDirIsNotAnDirectory() { $this->setExpectedException('\\Exception', 'The path "' . __FILE__ . '" did not resolve to a directory'); new BuildCustomFileGenerator(__FILE__, null); }