public function testJSONOpts() { $opts = Unirest\Request::jsonOpts(false, 512, JSON_NUMERIC_CHECK); $response = new Unirest\Response(200, '{"number": 1234567890}', '', $opts); $this->assertSame($response->body->number, 1234567890); }