PHP Class Faker\Test\Provider\ro_RO\PersonTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: fzaninotto/faker

Protected Properties

Свойство Type Description
$faker Faker\Generator
$originalTz

Méthodes publiques

Méthode Description
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 ( )

Méthodes protégées

Méthode Description
isValidCnp ( $cnp )
isValidFemaleCnp ( $value )
isValidMaleCnp ( $value )

Method Details

invalidCountyCodeProvider() public méthode

invalidGenderProvider() public méthode

invalidYearProvider() public méthode

public invalidYearProvider ( )

isValidCnp() protected méthode

protected isValidCnp ( $cnp )

isValidFemaleCnp() protected méthode

protected isValidFemaleCnp ( $value )

isValidMaleCnp() protected méthode

protected isValidMaleCnp ( $value )

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

test_allRandom_returnsValidCnp() public méthode

test_invalidCountyCode_throwsException() public méthode

public test_invalidCountyCode_throwsException ( $value )
$value

test_invalidGender_throwsException() public méthode

test_invalidYear_throwsException() public méthode

public test_invalidYear_throwsException ( string $value )
$value string year of birth

test_nonResident_returnsValidCnp() public méthode

test_validCountyCode_returnsValidCnp() public méthode

public test_validCountyCode_returnsValidCnp ( $value )
$value

test_validGender_returnsValidCnp() public méthode

test_validInputData_returnsValidCnp() public méthode

public test_validInputData_returnsValidCnp ( $gender, $dateOfBirth, $county, $isResident, $expectedCnpStart )
$gender
$dateOfBirth
$county
$isResident
$expectedCnpStart

test_validYear_returnsValidCnp() public méthode

public test_validYear_returnsValidCnp ( string $value )
$value string year of birth

validCountyCodeProvider() public méthode

validInputDataProvider() public méthode

validYearProvider() public méthode

public validYearProvider ( )

Property Details

$faker protected_oe property

protected Generator,Faker $faker
Résultat Faker\Generator

$originalTz protected_oe property

protected $originalTz