You are here

public function ConstraintViolationListTest::testInitWithViolations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/ConstraintViolationListTest.php \Symfony\Component\Validator\Tests\ConstraintViolationListTest::testInitWithViolations()

File

vendor/symfony/validator/Tests/ConstraintViolationListTest.php, line 36

Class

ConstraintViolationListTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testInitWithViolations() {
  $violation = $this
    ->getViolation('Error');
  $this->list = new ConstraintViolationList(array(
    $violation,
  ));
  $this
    ->assertCount(1, $this->list);
  $this
    ->assertSame($violation, $this->list[0]);
}