@@ -150,10 +150,10 @@ public function assertFragment(array $data)
150150
151151 PHPUnit::assertTrue (
152152 Str::contains ($ actual , $ expected ),
153- 'Unable to find JSON fragment: ' . PHP_EOL . PHP_EOL .
154- '[ ' . json_encode ([$ key => $ value ], JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL .
155- 'within ' . PHP_EOL . PHP_EOL .
156- "[ {$ actual }]. "
153+ 'Unable to find JSON fragment: ' . PHP_EOL . PHP_EOL
154+ . '[ ' . json_encode ([$ key => $ value ], JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL
155+ . 'within ' . PHP_EOL . PHP_EOL
156+ . "[ {$ actual }]. "
157157 );
158158 }
159159
@@ -182,10 +182,10 @@ public function assertMissing(array $data, $exact = false)
182182
183183 PHPUnit::assertFalse (
184184 Str::contains ($ actual , $ unexpected ),
185- 'Found unexpected JSON fragment: ' . PHP_EOL . PHP_EOL .
186- '[ ' . json_encode ([$ key => $ value ], JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL .
187- 'within ' . PHP_EOL . PHP_EOL .
188- "[ {$ actual }]. "
185+ 'Found unexpected JSON fragment: ' . PHP_EOL . PHP_EOL
186+ . '[ ' . json_encode ([$ key => $ value ], JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL
187+ . 'within ' . PHP_EOL . PHP_EOL
188+ . "[ {$ actual }]. "
189189 );
190190 }
191191
@@ -213,10 +213,10 @@ public function assertMissingExact(array $data)
213213 }
214214
215215 PHPUnit::fail (
216- 'Found unexpected JSON fragment: ' . PHP_EOL . PHP_EOL .
217- '[ ' . json_encode ($ data , JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL .
218- 'within ' . PHP_EOL . PHP_EOL .
219- "[ {$ actual }]. "
216+ 'Found unexpected JSON fragment: ' . PHP_EOL . PHP_EOL
217+ . '[ ' . json_encode ($ data , JSON_UNESCAPED_UNICODE ) . '] ' . PHP_EOL . PHP_EOL
218+ . 'within ' . PHP_EOL . PHP_EOL
219+ . "[ {$ actual }]. "
220220 );
221221 }
222222
@@ -383,10 +383,10 @@ protected function assertJsonMessage(array $data)
383383
384384 $ actual = json_encode ($ this ->decoded , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
385385
386- return 'Unable to find JSON: ' . PHP_EOL . PHP_EOL .
387- "[ {$ expected }] " . PHP_EOL . PHP_EOL .
388- 'within response JSON: ' . PHP_EOL . PHP_EOL .
389- "[ {$ actual }]. " . PHP_EOL . PHP_EOL ;
386+ return 'Unable to find JSON: ' . PHP_EOL . PHP_EOL
387+ . "[ {$ expected }] " . PHP_EOL . PHP_EOL
388+ . 'within response JSON: ' . PHP_EOL . PHP_EOL
389+ . "[ {$ actual }]. " . PHP_EOL . PHP_EOL ;
390390 }
391391
392392 /**
0 commit comments