From 099fbca53bfcf6deda9b4f4b837c13af543eaee3 Mon Sep 17 00:00:00 2001 From: thefosk Date: Wed, 19 Mar 2014 12:25:27 -0700 Subject: [PATCH] test --- test/Unirest/UnirestTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/Unirest/UnirestTest.php b/test/Unirest/UnirestTest.php index fc72659..6157f20 100644 --- a/test/Unirest/UnirestTest.php +++ b/test/Unirest/UnirestTest.php @@ -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()