public function ConstraintViolationListTest::testInitWithViolations in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ ConstraintViolationListTest.php, line 36
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testInitWithViolations() {
$violation = $this
->getViolation('Error');
$this->list = new ConstraintViolationList(array(
$violation,
));
$this
->assertCount(1, $this->list);
$this
->assertSame($violation, $this->list[0]);
}