8000 Avoid phpunit 5.4 warnings on getMock · symfony/symfony@eb8c27e · GitHub
[go: up one dir, main page]

Skip to content

Commit eb8c27e

Browse files
author
Iltar van der Berg
committed
Avoid phpunit 5.4 warnings on getMock
1 parent a41f359 commit eb8c27e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ protected function restoreDefaultTimezone()
9393

9494
protected function createContext()
9595
{
96-
$translator = $this->getMock('Symfony\Component\Translation\TranslatorInterface');
97-
$validator = $this->getMock('Symfony\Component\Validator\Validator\ValidatorInterface');
98-
$contextualValidator = $this->getMock('Symfony\Component\Validator\Validator\ContextualValidatorInterface');
96+
$translator = $this->getMockBuilder('Symfony\Component\Translation\TranslatorInterface')->getMock();
97+
$validator = $this->getMockBuilder('Symfony\Component\Validator\Validator\ValidatorInterface')->getMock();
98+
$contextualValidator = $this->getMockBuilder('Symfony\Component\Validator\Validator\ContextualValidatorInterface')->getMock();
9999

100100
$context = new ExecutionContext($validator, $this->root, $translator);
101101
$context->setGroup($this->group);

0 commit comments

Comments
 (0)
0