diff options
-rw-r--r-- | test/HTTP_POST_multipartTest.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/HTTP_POST_multipartTest.php b/test/HTTP_POST_multipartTest.php index a6dcae0..b61e9cb 100644 --- a/test/HTTP_POST_multipartTest.php +++ b/test/HTTP_POST_multipartTest.php @@ -15,19 +15,23 @@ class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase { /** * @dataProvider providerBuildDataPart */ - public function testBuildDataPart($name, $data, $expected, $ex) { + public function testBuildDataPart($part, $expected, $ex) { if ($ex) $this->setExpectedException($ex); $this->assertEquals( $expected, - self::getMethod('buildDataPart')->invokeArgs(null, array($name, $data)) + self::getMethod('buildDataPart')->invokeArgs(null, array($part)) ); } public function providerBuildDataPart() { return array( - array(null, null, null, 'Exception'), - array('foo', 1, "Content-Disposition: form-data; name=\"foo\"\r\n\r\n1\r\n", null) + array(null, null, 'Exception'), + array( + array('name' => 'foo', 'data' => 1), + "Content-Disposition: form-data; name=\"foo\"\r\n\r\n1\r\n", + null + ) ); } |