Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompoundConstraintTestCase.php

function CompoundConstraintTestCase::assertNoViolation

File

vendor/symfony/validator/Test/CompoundConstraintTestCase.php, line 118

Class

CompoundConstraintTestCase
A test case to ease testing Compound Constraints.

Namespace

Symfony\Component\Validator\Test

Code

protected function assertNoViolation() : void {
    $violationsCount = \count($this->context
        ->getViolations());
    $this->assertSame(0, $violationsCount, \sprintf('No violation expected. Got %d.', $violationsCount));
}
RSS feed
Powered by Drupal