Expanded class hierarchy of ConstraintViolationTest
class ConstraintViolationTest extends \PHPUnit_Framework_TestCase {
public function testToStringHandlesArrays() {
$violation = new ConstraintViolation('Array', '{{ value }}', array(
'{{ value }}' => array(
1,
2,
3,
),
), 'Root', 'property.path', null);
$expected = <<<EOF
Root.property.path:
Array
EOF;
$this
->assertSame($expected, (string) $violation);
}
}