projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge branch 'merge-DEV_2'
[m6w6/ext-http]
/
tests
/
message003.phpt
diff --git
a/tests/message003.phpt
b/tests/message003.phpt
index 0ce10b21af72e35d2edb0b7eafe47ce38173bb3a..93f128a4362325d5ea479763c606c7712c996904 100644
(file)
--- a/
tests/message003.phpt
+++ b/
tests/message003.phpt
@@
-1,22
+1,24
@@
--TEST--
multipart message
--SKIPIF--
--TEST--
multipart message
--SKIPIF--
-<? include "skipif.inc";
+<?php
+include "skipif.inc";
+?>
--FILE--
--FILE--
-<?
+<?
php
$m = new http\Message(fopen(__DIR__."/data/message_r_multipart_put.txt","rb"));
if ($m->isMultipart($boundary)) {
var_dump($boundary);
$m = new http\Message(fopen(__DIR__."/data/message_r_multipart_put.txt","rb"));
if ($m->isMultipart($boundary)) {
var_dump($boundary);
- foreach ($m->splitMultipartBody() as $mm) {
- echo "===\n",$mm,"===\n";
+ foreach ($m->splitMultipartBody() as $
i => $
mm) {
+ echo "==
$i=
=\n",$mm,"===\n";
}
}
?>
DONE
--EXPECTF--
string(40) "----------------------------6e182425881c"
}
}
?>
DONE
--EXPECTF--
string(40) "----------------------------6e182425881c"
-===
+==
%d=
=
Content-Disposition: form-data; name="composer"; filename="composer.json"
Content-Type: application/octet-stream
Content-Length: 567
Content-Disposition: form-data; name="composer"; filename="composer.json"
Content-Type: application/octet-stream
Content-Length: 567
@@
-45,9
+47,8
@@
Content-Length: 567
}
}
}
}
-
-===
===
===
+==%d==
Content-Disposition: form-data; name="LICENSE"; filename="LICENSE"
Content-Type: application/octet-stream
Content-Length: 1354
Content-Disposition: form-data; name="LICENSE"; filename="LICENSE"
Content-Type: application/octet-stream
Content-Length: 1354
@@
-76,6
+77,5
@@
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
===
DONE
===
DONE