public function testGetErrorObjectWhenErrorIsNotJson() { $exception = new HttpException('message_content', '{}not_json{}', 808); $this->assertNull($exception->getErrorObject()); }