Свойство | Тип | Описание | |
---|---|---|---|
$faker | |||
$originalTz |
Метод | Описание | |
---|---|---|
invalidCountyCodeProvider ( ) | ||
invalidGenderProvider ( ) | ||
invalidYearProvider ( ) | ||
setUp ( ) | ||
tearDown ( ) | ||
test_allRandom_returnsValidCnp ( ) | ||
test_invalidCountyCode_throwsException ( $value ) | ||
test_invalidGender_throwsException ( string $value ) | ||
test_invalidYear_throwsException ( string $value ) | ||
test_nonResident_returnsValidCnp ( ) | ||
test_validCountyCode_returnsValidCnp ( $value ) | ||
test_validGender_returnsValidCnp ( ) | ||
test_validInputData_returnsValidCnp ( $gender, $dateOfBirth, $county, $isResident, $expectedCnpStart ) | ||
test_validYear_returnsValidCnp ( string $value ) | ||
validCountyCodeProvider ( ) | ||
validInputDataProvider ( ) | ||
validYearProvider ( ) |
Метод | Описание | |
---|---|---|
isValidCnp ( $cnp ) | ||
isValidFemaleCnp ( $value ) | ||
isValidMaleCnp ( $value ) |
public test_invalidCountyCode_throwsException ( $value ) | ||
$value |
public test_invalidGender_throwsException ( string $value ) | ||
$value | string |
public test_invalidYear_throwsException ( string $value ) | ||
$value | string | year of birth |
public test_validCountyCode_returnsValidCnp ( $value ) | ||
$value |
public test_validInputData_returnsValidCnp ( $gender, $dateOfBirth, $county, $isResident, $expectedCnpStart ) | ||
$gender | ||
$dateOfBirth | ||
$county | ||
$isResident | ||
$expectedCnpStart |
public test_validYear_returnsValidCnp ( string $value ) | ||
$value | string | year of birth |