test
This commit is contained in:
@@ -113,6 +113,17 @@ class UnirestTest extends UnitTestCase
|
|||||||
|
|
||||||
$args = $response->body->args;
|
$args = $response->body->args;
|
||||||
$this->assertEqual("Mark=Hello", $args->name);
|
$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()
|
public function testPostArray()
|
||||||
|
|||||||
Reference in New Issue
Block a user