We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81219d5 commit c491aaeCopy full SHA for c491aae
1 file changed
tests/system/EntityTest.php
@@ -469,12 +469,14 @@ public function testCastAsJSONSyntaxError()
469
{
470
$entity = new Entity();
471
472
+ $method = $this->getPrivateMethodInvoker($entity,'castAsJson');
473
+
474
$this->expectException(CastException::class);
475
$this->expectExceptionMessage('Syntax error, malformed JSON');
476
- $method = $this->getPrivateMethodInvoker($entity,'castAsJson');
477
478
- $method("'{ bar: \"baz\" }'", true);
479
+ $method("( this is bad string", true);
480
}
481
//--------------------------------------------------------------------
482
0 commit comments