public function testDelete() { $responses = Curl::delete('http://httpbin.org/delete'); $this->assertInstanceOf('jyggen\\Curl\\Response', $responses[0]); $content = json_decode($responses[0]->getContent()); $this->assertSame(JSON_ERROR_NONE, json_last_error()); $this->assertSame('http://httpbin.org/delete', $content->url); }