10000 bug #19128 Avoid phpunit 5.4 warnings on getMock (2.7+) (iltar) · symfony/symfony@a65fe45 · GitHub
[go: up one dir, main page]

Skip to content

Commit a65fe45

Browse files
bug #19128 Avoid phpunit 5.4 warnings on getMock (2.7+) (iltar)
This PR was merged into the 2.7 branch. Discussion ---------- Avoid phpunit 5.4 warnings on getMock (2.7+) | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19125 | License | MIT | Doc PR | ~ Avoids calling `getMock()` in phpunit 5.4 which will trigger a warning (and thus failing test suite) when used by developers as this TestCase is an extension point. Commits ------- b05014c Avoid phpunit 5.4 warnings on getMock
2 parents 0854c12 + b05014c commit a65fe45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Test/TypeTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function setUp()
3030
{
3131
parent::setUp();
3232

33-
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
33+
$this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispatcher\EventDispatcherInterface')->getMock();
3434
$this->builder = new FormBuilder(null, null, $this->dispatcher, $this->factory);
3535
}
3636

0 commit comments

Comments
 (0)
0