You are here

public function ConstraintViolationListTest::testInitWithViolations in Plug 7

File

lib/Symfony/validator/Symfony/Component/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]);
}