public function testPutWithData() { $responses = Curl::put('http://httpbin.org/put', array('foo' => 'bar', 'bar' => 'foo')); $this->assertInstanceOf('jyggen\\Curl\\Response', $responses[0]); $content = json_decode($responses[0]->getContent()); $this->assertSame(JSON_ERROR_NONE, json_last_error()); $this->assertSame('foo=bar&bar=foo', $content->data); }