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