public function testInvalidOptionException() { $this->setExpectedException('Fakerino\\FakeData\\Exception\\InvalidOptionException'); $fakeDataA = new FakeDataA(array('required1' => 1, 'required2' => 2, 'otherOption')); }