Skip to content

Commit eb4b192

Browse files
committed
Use Phpunit FQDN in tests comments
1 parent 90ee1bd commit eb4b192

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ContainerAwareEventDispatcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\EventDispatcher;
1313

14+
use PHPUnit\Framework\MockObject\MockObject;
1415
use Symfony\Component\DependencyInjection\ContainerInterface;
1516

1617
/**
@@ -42,7 +43,7 @@ public function __construct(ContainerInterface $container)
4243
$this->container = $container;
4344

4445
$class = \get_class($this);
45-
if ($this instanceof \PHPUnit_Framework_MockObject_MockObject || $this instanceof \Prophecy\Doubler\DoubleInterface) {
46+
if ($this instanceof \PHPUnit_Framework_MockObject_MockObject || $this instanceof MockObject || $this instanceof \Prophecy\Doubler\DoubleInterface) {
4647
$class = get_parent_class($class);
4748
}
4849
if (__CLASS__ !== $class) {

Tests/ImmutableEventDispatcherTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\EventDispatcher\Tests;
1313

14+
use PHPUnit\Framework\MockObject\MockObject;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\EventDispatcher\Event;
1617
use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
@@ -21,7 +22,7 @@
2122
class ImmutableEventDispatcherTest extends TestCase
2223
{
2324
/**
24-
* @var \PHPUnit_Framework_MockObject_MockObject
25+
* @var MockObject
2526
*/
2627
private $innerDispatcher;
2728

0 commit comments

Comments
 (0)