diff options
author | uckelman <uckelman@nomic.net> | 2010-05-09 16:18:09 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-05-09 16:18:09 +0000 |
commit | 3d0d359cb3afaf1e09b6ac692f0cd69b63cada6d (patch) | |
tree | c18f623873fb8183ede78176b31af307394b19aa /test | |
parent | a0f2208503760ace4d2b3df47f93fe4d2e0a5bc1 (diff) |
Added tests.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6820 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test')
-rw-r--r-- | test/HTTP_POST_multipartTest.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/HTTP_POST_multipartTest.php b/test/HTTP_POST_multipartTest.php index 309eccb..b99c98b 100644 --- a/test/HTTP_POST_multipartTest.php +++ b/test/HTTP_POST_multipartTest.php @@ -61,6 +61,30 @@ class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase { ), "Content-Disposition: form-data; name=\"foo\"; filename=\"somename.txt\"\r\nContent-Type: text/plain; charset=\"utf-8\"\r\n\r\nblah blah blah\nblah blah blah\r\n", null + ), + array( + array( + 'name' => 'foo', + 'filename' => 'somename.png', + 'mimetype' => 'image/png', + 'charset' => null, + 'encoding' => 'binary', + 'data' => "blah blah blah\nblah blah blah" + ), + "Content-Disposition: form-data; name=\"foo\"; filename=\"somename.png\"\r\nContent-Type: image/png\r\n\r\nblah blah blah\nblah blah blah\r\n", + null + ) + array( + array( + 'name' => 'foo', + 'filename' => 'somename.png', + 'mimetype' => 'image/png', + 'charset' => null, + 'encoding' => 'base64', + 'data' => "blah blah blah\nblah blah blah" + ), + "Content-Disposition: form-data; name=\"foo\"; filename=\"somename.png\"\r\nContent-Type: image/png\r\n\r\nYmxhaCBibGFoIGJsYWgKYmxhaCBibGFoIGJsYWg=\r\n", + null ) ); } |