Skip to content

Commit c491aae

Browse files
authored
Update test case
1 parent 81219d5 commit c491aae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/system/EntityTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,14 @@ public function testCastAsJSONSyntaxError()
469469
{
470470
$entity = new Entity();
471471

472+
$method = $this->getPrivateMethodInvoker($entity,'castAsJson');
473+
472474
$this->expectException(CastException::class);
473475
$this->expectExceptionMessage('Syntax error, malformed JSON');
474476

475-
$method = $this->getPrivateMethodInvoker($entity,'castAsJson');
477+
476478

477-
$method("'{ bar: \"baz\" }'", true);
479+
$method("( this is bad string", true);
478480
}
479481
//--------------------------------------------------------------------
480482

0 commit comments

Comments
 (0)