X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmessage003.phpt;h=69be990725030e3c7bdd411109eb5ec1a9b592ed;hb=6519517dbcc5d55117b3fa94572fe93123ddfe56;hp=0ce10b21af72e35d2edb0b7eafe47ce38173bb3a;hpb=61067d19cf03ad876954c2644ff9e37942b2ad67;p=m6w6%2Fext-http diff --git a/tests/message003.phpt b/tests/message003.phpt index 0ce10b2..69be990 100644 --- a/tests/message003.phpt +++ b/tests/message003.phpt @@ -8,15 +8,15 @@ $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" -=== +==%d== Content-Disposition: form-data; name="composer"; filename="composer.json" Content-Type: application/octet-stream Content-Length: 567 @@ -45,9 +45,8 @@ Content-Length: 567 } } - -=== === +==%d== Content-Disposition: form-data; name="LICENSE"; filename="LICENSE" Content-Type: application/octet-stream Content-Length: 1354 @@ -76,6 +75,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. - === DONE