public function test_invalidGender_throwsException($value) { $this->setExpectedException('InvalidArgumentException'); $this->faker->cnp($value); }