File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \EventDispatcher ;
13
13
14
+ use PHPUnit \Framework \MockObject \MockObject ;
14
15
use Symfony \Component \DependencyInjection \ContainerInterface ;
15
16
16
17
/**
@@ -42,7 +43,7 @@ public function __construct(ContainerInterface $container)
42
43
$ this ->container = $ container ;
43
44
44
45
$ 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) {
46
47
$ class = get_parent_class ($ class );
47
48
}
48
49
if (__CLASS__ !== $ class ) {
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \EventDispatcher \Tests ;
13
13
14
+ use PHPUnit \Framework \MockObject \MockObject ;
14
15
use PHPUnit \Framework \TestCase ;
15
16
use Symfony \Component \EventDispatcher \Event ;
16
17
use Symfony \Component \EventDispatcher \ImmutableEventDispatcher ;
21
22
class ImmutableEventDispatcherTest extends TestCase
22
23
{
23
24
/**
24
- * @var \PHPUnit_Framework_MockObject_MockObject
25
+ * @var MockObject
25
26
*/
26
27
private $ innerDispatcher ;
27
28
You can’t perform that action at this time.
0 commit comments