File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function kernel_should_boot()
25
25
{
26
26
$ kernel = $ this ->createKernel ();
27
27
28
- $ this ->assertTrue ( $ kernel ->getContainer () instanceof SymfonyContainerBridge );
28
+ $ this ->assertInstanceOf (SymfonyContainerBridge::class, $ kernel ->getContainer ());
29
29
}
30
30
31
31
/**
@@ -36,7 +36,7 @@ public function phpdi_should_resolve_classes()
36
36
$ kernel = $ this ->createKernel ();
37
37
38
38
$ object = $ kernel ->getContainer ()->get (Class1::class);
39
- $ this ->assertTrue ( $ object instanceof Class1 );
39
+ $ this ->assertInstanceOf (Class1::class, $ object );
40
40
}
41
41
42
42
/**
@@ -47,6 +47,6 @@ public function symfony_should_resolve_classes()
47
47
$ kernel = $ this ->createKernel ('class2.yml ' );
48
48
49
49
$ object = $ kernel ->getContainer ()->get ('class2 ' );
50
- $ this ->assertTrue ( $ object instanceof Class2 );
50
+ $ this ->assertInstanceOf (Class2::class, $ object );
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function testHasFallback()
19
19
{
20
20
$ wrapper = new SymfonyContainerBridge ();
21
21
22
- $ fallback = $ this ->getMockForAbstractClass (' Interop\Container\ ContainerInterface' );
22
+ $ fallback = $ this ->getMockForAbstractClass (ContainerInterface::class );
23
23
$ fallback ->expects ($ this ->once ())
24
24
->method ('has ' )
25
25
->with ('foo ' )
@@ -34,7 +34,7 @@ public function testGetFallback()
34
34
{
35
35
$ wrapper = new SymfonyContainerBridge ();
36
36
37
- $ fallback = $ this ->getMockForAbstractClass (' Interop\Container\ ContainerInterface' );
37
+ $ fallback = $ this ->getMockForAbstractClass (ContainerInterface::class );
38
38
$ fallback ->expects ($ this ->once ())
39
39
->method ('get ' )
40
40
->with ('foo ' )
You can’t perform that action at this time.
0 commit comments