supporting curl_file_create`

This commit is contained in:
thefosk
2014-01-08 19:05:22 -08:00
parent bf865a5c30
commit 1504e81ff1
3 changed files with 16 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ class UnirestTest extends UnitTestCase
$response = Unirest::post("http://httpbin.org/post", array( "Accept" => "application/json" ),
array(
"name" => "Mark",
"file" => "@" . dirname(__FILE__) . "/test_upload.txt"
"file" => Unirest::file(dirname(__FILE__) . "/test_upload.txt")
)
);
$this->assertEqual(200, $response->code);