/** * @test * * @expectedException InvalidArgumentException */ public function setGenderForInvalidGenderKeyThrowsException() { if (!Tx_Oelib_Model_FrontEndUser::hasGenderField()) { self::markTestSkipped('This test is only applicable if the FrontEndUser.gender field exists.'); } $this->subject->setData(array()); $this->subject->setGender(4); }