You are here

protected function AbstractConstraintValidatorTest::assertNoViolation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest::assertNoViolation()
138 calls to AbstractConstraintValidatorTest::assertNoViolation()
AbstractComparisonValidatorTestCase::testValidComparisonToValue in vendor/symfony/validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
@dataProvider provideAllValidComparisons
AllValidatorTest::testNullIsValid in vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php
AllValidatorTest::testWalkMultipleConstraints in vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php
@dataProvider getValidArguments
AllValidatorTest::testWalkSingleConstraint in vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php
@dataProvider getValidArguments
BlankValidatorTest::testBlankIsValid in vendor/symfony/validator/Tests/Constraints/BlankValidatorTest.php

... See full list

File

vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php, line 241

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function assertNoViolation() {
  $this
    ->assertSame(0, $violationsCount = count($this->context
    ->getViolations()), sprintf('0 violation expected. Got %u.', $violationsCount));
}