File tree 1 file changed +5
-5
lines changed
src/Illuminate/Foundation/Testing
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ public function assertJsonFragment(array $data)
471
471
PHPUnit::assertTrue (
472
472
Str::contains ($ actual , $ expected ),
473
473
'Unable to find JSON fragment: ' .PHP_EOL .PHP_EOL .
474
- " [ " . json_encode ([$ key => $ value ]) . " ] " .PHP_EOL .PHP_EOL .
474
+ ' [ ' . json_encode ([$ key => $ value ]). ' ] ' .PHP_EOL .PHP_EOL .
475
475
'within ' .PHP_EOL .PHP_EOL .
476
476
"[ {$ actual }]. "
477
477
);
@@ -503,7 +503,7 @@ public function assertJsonMissing(array $data, $exact = false)
503
503
PHPUnit::assertFalse (
504
504
Str::contains ($ actual , $ unexpected ),
505
505
'Found unexpected JSON fragment: ' .PHP_EOL .PHP_EOL .
506
- " [ " .json_encode ([$ key => $ value ])." ] " .PHP_EOL .PHP_EOL .
506
+ ' [ ' .json_encode ([$ key => $ value ]).' ] ' .PHP_EOL .PHP_EOL .
507
507
'within ' .PHP_EOL .PHP_EOL .
508
508
"[ {$ actual }]. "
509
509
);
@@ -555,9 +555,9 @@ protected function jsonSearchStrings($key, $value)
555
555
$ needle = substr (json_encode ([$ key => $ value ]), 1 , -1 );
556
556
557
557
return [
558
- $ needle . '] ' ,
559
- $ needle . '} ' ,
560
- $ needle . ', ' ,
558
+ $ needle. '] ' ,
559
+ $ needle. '} ' ,
560
+ $ needle. ', ' ,
561
561
];
562
562
}
563
563
You can’t perform that action at this time.
0 commit comments