From 797fb35be4caf66e85657ba6e6b59a394f85e5c3 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 9 May 2010 16:08:59 +0000 Subject: Test works now. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6818 67b53d14-2c14-4ace-a08f-0dab2b34000c --- test/HTTP_POST_multipartTest.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/HTTP_POST_multipartTest.php') 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 + ) ); } -- cgit v1.2.3