Ejemplo n.º 1
0
 /**
  *
  * @param $gender
  * @param $dateOfBirth
  * @param $county
  * @param $isResident
  * @param $expectedCnpStart
  *
  * @dataProvider validInputDataProvider
  */
 public function test_validInputData_returnsValidCnp($gender, $dateOfBirth, $county, $isResident, $expectedCnpStart)
 {
     $cnp = $this->faker->cnp($gender, $dateOfBirth, $county, $isResident);
     $this->assertStringStartsWith($expectedCnpStart, $cnp, sprintf("Invalid CNP '%' generated for non valid data", $cnp));
 }