/** * Tests a POST request using the httpbin service. */ public function xtestPost() { $rest = new RestApi('http://httpbin.org'); $rest->setJson(); $response = $rest->post('/post', array('foo' => 'bar')); $this->assertEquals(200, $response->status); $this->assertObjectHasAttribute('args', $response->body); $this->assertInternalType('object', $response->body->json); $this->assertEquals('bar', $response->body->json->foo); }