summaryrefslogtreecommitdiff
path: root/test/HTTP_POST_multipartTest.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-05-09 16:08:59 +0000
committeruckelman <uckelman@nomic.net>2010-05-09 16:08:59 +0000
commit797fb35be4caf66e85657ba6e6b59a394f85e5c3 (patch)
tree78a64dfb3b0e83e4ba32002a4d2f1c7f5e63a7d7 /test/HTTP_POST_multipartTest.php
parent36439693db5a5220cf18bf9b9ad8cc83db17b59e (diff)
Test works now.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6818 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test/HTTP_POST_multipartTest.php')
-rw-r--r--test/HTTP_POST_multipartTest.php12
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
+ )
);
}