public function test_construct_invalid_json() { $this->exception(function () { $json = $this->newTestedInstance('{{json'); })->hasMessage("The string '{{json' is not valid json"); }