Avoid phpunit 5.4 warnings on getMock
This commit is contained in:
parent
a41f359e51
commit
eb8c27e882
@ -93,9 +93,9 @@ abstract class ConstraintValidatorTestCase extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
protected function createContext()
|
protected function createContext()
|
||||||
{
|
{
|
||||||
$translator = $this->getMock('Symfony\Component\Translation\TranslatorInterface');
|
$translator = $this->getMockBuilder('Symfony\Component\Translation\TranslatorInterface')->getMock();
|
||||||
$validator = $this->getMock('Symfony\Component\Validator\Validator\ValidatorInterface');
|
$validator = $this->getMockBuilder('Symfony\Component\Validator\Validator\ValidatorInterface')->getMock();
|
||||||
$contextualValidator = $this->getMock('Symfony\Component\Validator\Validator\ContextualValidatorInterface');
|
$contextualValidator = $this->getMockBuilder('Symfony\Component\Validator\Validator\ContextualValidatorInterface')->getMock();
|
||||||
|
|
||||||
$context = new ExecutionContext($validator, $this->root, $translator);
|
$context = new ExecutionContext($validator, $this->root, $translator);
|
||||||
$context->setGroup($this->group);
|
$context->setGroup($this->group);
|
||||||
|
Reference in New Issue
Block a user