From c7b73c83168e10f6bf66de439047ec81ece864a7 Mon Sep 17 00:00:00 2001 From: Ahmad Nassri Date: Wed, 17 Dec 2014 22:45:58 -0500 Subject: [PATCH] identation fix --- tests/Unirest/RequestTest.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/Unirest/RequestTest.php b/tests/Unirest/RequestTest.php index 688ece4..312ec16 100644 --- a/tests/Unirest/RequestTest.php +++ b/tests/Unirest/RequestTest.php @@ -1,9 +1,9 @@ 'mail@mailinator.com', - 'from' => 'mail@mailinator.com', - 'file' => $file - ); - Request::buildHTTPCurlQuery($body, $postBody); - $this->assertEquals($postBody['file'], $file); + $file = Request::file(UPLOAD_FIXTURE); + $body = array( + 'to' => 'mail@mailinator.com', + 'from' => 'mail@mailinator.com', + 'file' => $file + ); + + Request::buildHTTPCurlQuery($body, $postBody); + $this->assertEquals($postBody['file'], $file); } }