You are here

public function Abstract2Dot5ApiTest::testValidateWithEmptyArrayAsConstraint in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php \Symfony\Component\Validator\Tests\Validator\Abstract2Dot5ApiTest::testValidateWithEmptyArrayAsConstraint()

File

vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php, line 79

Class

Abstract2Dot5ApiTest
Verifies that a validator satisfies the API of Symfony 2.5+.

Namespace

Symfony\Component\Validator\Tests\Validator

Code

public function testValidateWithEmptyArrayAsConstraint() {
  $violations = $this->validator
    ->validate('value', array());
  $this
    ->assertCount(0, $violations);
}