Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Faker\Test\Provider\kk_KZ; use Faker\Generator; use Faker\Provider\DateTi..
Decoded Output download
<?php
namespace Faker\Test\Provider\kk_KZ;
use Faker\Generator;
use Faker\Provider\DateTime;
use Faker\Provider\kk_KZ\Person;
use PHPUnit\Framework\TestCase;
final class PersonTest extends TestCase
{
/**
* {@inheritdoc}
*/
protected function setUp()
{
$this->faker = new Generator();
$this->faker->addProvider(new Person($this->faker));
}
public function testIndividualIdentificationNumberIsValid()
{
$birthDate = DateTime::dateTimeBetween('-30 years', '-10 years');
$individualIdentificationNumber = $this->faker->individualIdentificationNumber($birthDate);
$controlDigit = Person::checkSum($individualIdentificationNumber);
$this->assertSame($controlDigit, (int)substr($individualIdentificationNumber, 11, 1));
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Faker\Test\Provider\kk_KZ;
use Faker\Generator;
use Faker\Provider\DateTime;
use Faker\Provider\kk_KZ\Person;
use PHPUnit\Framework\TestCase;
final class PersonTest extends TestCase
{
/**
* {@inheritdoc}
*/
protected function setUp()
{
$this->faker = new Generator();
$this->faker->addProvider(new Person($this->faker));
}
public function testIndividualIdentificationNumberIsValid()
{
$birthDate = DateTime::dateTimeBetween('-30 years', '-10 years');
$individualIdentificationNumber = $this->faker->individualIdentificationNumber($birthDate);
$controlDigit = Person::checkSum($individualIdentificationNumber);
$this->assertSame($controlDigit, (int)substr($individualIdentificationNumber, 11, 1));
}
}
Function Calls
None |
Stats
MD5 | e836de29ed146b64a408615913c8d394 |
Eval Count | 0 |
Decode Time | 123 ms |