@@ -74,7 +74,8 @@ public function testAssertJsonContains(): void
74
74
public function testAssertJsonContainsWithJsonObjectString (): void
75
75
{
76
76
self ::createClient ()->request ('GET ' , '/ ' );
77
- $ this ->assertJsonContains (<<<JSON
77
+ $ this ->assertJsonContains (
78
+ <<<JSON
78
79
{
79
80
"@context": "/contexts/Entrypoint"
80
81
}
@@ -88,7 +89,8 @@ public function testAssertJsonContainsWithJsonScalarString(): void
88
89
$ this ->expectExceptionMessage ('$subset must be array or string (JSON array or JSON object) ' );
89
90
90
91
self ::createClient ()->request ('GET ' , '/ ' );
91
- $ this ->assertJsonContains (<<<JSON
92
+ $ this ->assertJsonContains (
93
+ <<<JSON
92
94
"/contexts/Entrypoint"
93
95
JSON
94
96
);
@@ -109,7 +111,8 @@ public function testAssertJsonEquals(): void
109
111
public function testAssertJsonEqualsWithJsonObjectString (): void
110
112
{
111
113
self ::createClient ()->request ('GET ' , '/contexts/Address ' );
112
- $ this ->assertJsonEquals (<<<JSON
114
+ $ this ->assertJsonEquals (
115
+ <<<JSON
113
116
{
114
117
"@context": {
115
118
"@vocab": "http://localhost/docs.jsonld#",
@@ -403,8 +406,12 @@ public function testDoNotRebootKernelOnCreateClient(): void
403
406
$ mock ->method ('getContainer ' )->willReturn (self ::getContainer ());
404
407
$ mock ->expects ($ this ->never ())->method ('boot ' );
405
408
409
+ $ oldKernel = self ::$ kernel ;
406
410
self ::$ kernel = $ mock ;
407
411
408
412
self ::createClient ();
413
+
414
+ // restore old kernel for proper shutdown
415
+ self ::$ kernel = $ oldKernel ;
409
416
}
410
417
}
0 commit comments