Skip to content
Browse files

merged branch mtdowling/fixing_unit_test (PR #54)

Commits
-------

aab31c4 Fixing unit test for latest update to how Guzzle handles POST uploads

Discussion
----------

Fixing unit test for latest update to how Guzzle handles POST uploads

I added much better support for POST uploads in 2.6.3.  This change fixes a unit test that was expecting the old format of how POST files are internally stored in an EntityEnclosingRequest.
  • Loading branch information...
2 parents 78a24d2 + aab31c4 commit c65d65155c540b49c10935e89dcb0c189165a20c @fabpot fabpot committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 Goutte/Tests/ClientTest.php
View
7 Goutte/Tests/ClientTest.php
@@ -105,7 +105,12 @@ public function testUsesPostFiles()
$request = $this->historyPlugin->getLastRequest();
$this->assertEquals(array(
- 'test' => __FILE__
+ 'test' => array(
+ array(
+ 'file' => __FILE__,
+ 'type' => 'text/x-php'
+ )
+ )
), $request->getPostFiles());
}

0 comments on commit c65d651

Please sign in to comment.
Something went wrong with that request. Please try again.