public function ConstraintViolationListTest::testInitWithViolations in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/ConstraintViolationListTest.php \Symfony\Component\Validator\Tests\ConstraintViolationListTest::testInitWithViolations()
File
- vendor/
symfony/ 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]);
}