Jyxo\Input\ValidatorTest::executeTests PHP Метод

executeTests() приватный Метод

Tests right values.
private executeTests ( Jyxo\Input\ValidatorInterface $validator, array $good, array $wrong )
$validator Jyxo\Input\ValidatorInterface Validator
$good array Right values
$wrong array Wrong values
    private function executeTests(\Jyxo\Input\ValidatorInterface $validator, array $good, array $wrong)
    {
        foreach ($good as $value) {
            $this->assertTrue($validator->isValid($value), sprintf('Tests of value %s should be true but is false.', print_r($value, true)));
        }
        foreach ($wrong as $value) {
            $this->assertFalse($validator->isValid($value), sprintf('Tests of value %s should be false but is true.', print_r($value, true)));
        }
    }