Faker\Test\Provider\kk_KZ\PersonTest::testIndividualIdentificationNumberIsValid PHP Method

testIndividualIdentificationNumberIsValid() public method

    public function testIndividualIdentificationNumberIsValid()
    {
        $birthDate = new \DateTime('now');
        $individualIdentificationNumber = $this->faker->individualIdentificationNumber($birthDate);
        $birthDateAsString = $birthDate->format('ymd');
        $this->assertRegExp("/^(" . $birthDateAsString . ")([1-6]{1})(\\d{5})\$/", $individualIdentificationNumber);
    }