public function testConstructFailsWithoutTheSecondParameter() { $this->setExpectedException('\\Exception', 'You must specify a build folder'); new BuildGenerator('.', null); }