@@ -74,7 +74,8 @@ public function testAssertJsonContains(): void
7474 public function testAssertJsonContainsWithJsonObjectString (): void
7575 {
7676 self ::createClient ()->request ('GET ' , '/ ' );
77- $ this ->assertJsonContains (<<<JSON
77+ $ this ->assertJsonContains (
78+ <<<JSON
7879{
7980 "@context": "/contexts/Entrypoint"
8081}
@@ -88,7 +89,8 @@ public function testAssertJsonContainsWithJsonScalarString(): void
8889 $ this ->expectExceptionMessage ('$subset must be array or string (JSON array or JSON object) ' );
8990
9091 self ::createClient ()->request ('GET ' , '/ ' );
91- $ this ->assertJsonContains (<<<JSON
92+ $ this ->assertJsonContains (
93+ <<<JSON
9294"/contexts/Entrypoint"
9395JSON
9496 );
@@ -109,7 +111,8 @@ public function testAssertJsonEquals(): void
109111 public function testAssertJsonEqualsWithJsonObjectString (): void
110112 {
111113 self ::createClient ()->request ('GET ' , '/contexts/Address ' );
112- $ this ->assertJsonEquals (<<<JSON
114+ $ this ->assertJsonEquals (
115+ <<<JSON
113116{
114117 "@context": {
115118 "@vocab": "http://localhost/docs.jsonld#",
@@ -403,8 +406,12 @@ public function testDoNotRebootKernelOnCreateClient(): void
403406 $ mock ->method ('getContainer ' )->willReturn (self ::getContainer ());
404407 $ mock ->expects ($ this ->never ())->method ('boot ' );
405408
409+ $ oldKernel = self ::$ kernel ;
406410 self ::$ kernel = $ mock ;
407411
408412 self ::createClient ();
413+
414+ // restore old kernel for proper shutdown
415+ self ::$ kernel = $ oldKernel ;
409416 }
410417}
0 commit comments