PHP Class Faker\Test\Provider\ro_RO\PersonTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: fzaninotto/faker

Protected Properties

Property Type Description
$faker Faker\Generator
$originalTz

Public Methods

Method 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 ( )

Protected Methods

Method Description
isValidCnp ( $cnp )
isValidFemaleCnp ( $value )
isValidMaleCnp ( $value )

Method Details

invalidCountyCodeProvider() public method

invalidGenderProvider() public method

invalidYearProvider() public method

public invalidYearProvider ( )

isValidCnp() protected method

protected isValidCnp ( $cnp )

isValidFemaleCnp() protected method

protected isValidFemaleCnp ( $value )

isValidMaleCnp() protected method

protected isValidMaleCnp ( $value )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

test_allRandom_returnsValidCnp() public method

test_invalidCountyCode_throwsException() public method

public test_invalidCountyCode_throwsException ( $value )
$value

test_invalidGender_throwsException() public method

test_invalidYear_throwsException() public method

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

test_nonResident_returnsValidCnp() public method

test_validCountyCode_returnsValidCnp() public method

public test_validCountyCode_returnsValidCnp ( $value )
$value

test_validGender_returnsValidCnp() public method

test_validInputData_returnsValidCnp() public method

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

test_validYear_returnsValidCnp() public method

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

validCountyCodeProvider() public method

validInputDataProvider() public method

validYearProvider() public method

public validYearProvider ( )

Property Details

$faker protected_oe property

protected Generator,Faker $faker
return Faker\Generator

$originalTz protected_oe property

protected $originalTz