public static function lastError() { return json_last_error(); }
/** * @test */ public function shouldResetJsonError() { //given Json::safeDecode("error"); Json::safeDecode(""); //when $error = Json::lastError(); //then $this->assertEquals(JSON_ERROR_NONE, $error); }