We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 507a71f + 76f85db commit 3b63b2eCopy full SHA for 3b63b2e
Tests/Form/Type/ValidatorExtensionTypeTestCase.php
@@ -15,7 +15,12 @@ class ValidatorExtensionTypeTestCase extends TypeTestCase
15
{
16
protected function getTypeExtensions()
17
18
- $validator = $this->getMock('Symfony\Component\Validator\Validator\ValidatorInterface');
+ if (interface_exists('Symfony\Component\Validator\Validator\ValidatorInterface')) {
19
+ $validator = $this->getMock('Symfony\Component\Validator\Validator\ValidatorInterface');
20
+ } else {
21
+ $validator = $this->getMock('Symfony\Component\Validator\ValidatorInterface');
22
+ }
23
+
24
$validator->method('validate')->will($this->returnValue(new ConstraintViolationList()));
25
26
return array(
0 commit comments