/** * Tests a GET request using the httpbin service. */ public function xtestGetWithTemplating() { $rest = new RestApi('http://httpbin.org'); $rest->setJson(false, true); $response = $rest->get(array('/%something', array('%something' => 'get')), array('foo' => 'bar')); $this->assertEquals(200, $response->status); $this->assertObjectHasAttribute('args', $response->body); $this->assertInternalType('object', $response->body->args); $this->assertEquals('bar', $response->body->args->foo); }