This commit is contained in:
thefosk
2014-03-19 12:25:27 -07:00
parent 4d7aabfa47
commit 099fbca53b

View File

@@ -113,6 +113,17 @@ class UnirestTest extends UnitTestCase
$args = $response->body->args;
$this->assertEqual("Mark=Hello", $args->name);
$response = Unirest::get("http://httpbin.org/get", array(
"Accept" => "application/json"
), array(
"name" => "Mark=Hello=John"
));
$this->assertEqual(200, $response->code);
$args = $response->body->args;
$this->assertEqual("Mark=Hello=John", $args->name);
}
public function testPostArray()