assertNull(JsonEncodingValidator::validate()); } public function testWithJsonError() { json_encode("\xB1\x31"); $this->setExpectedException('\JsonRPC\Exception\ResponseEncodingFailureException'); JsonEncodingValidator::validate(); } }