add boundary check
authorMichael Wallner <mike@php.net>
Thu, 10 Jul 2014 11:22:39 +0000 (13:22 +0200)
committerMichael Wallner <mike@php.net>
Thu, 10 Jul 2014 11:22:39 +0000 (13:22 +0200)
tests/messagebody005.phpt

index 2d1d8b27dcc125795a7059b978e6a4eb9e8777d1..72f402d9ccee2110747398735de138639ead4a1b 100644 (file)
@@ -9,13 +9,17 @@ include "skipif.inc";
 echo "Test\n";
 
 $temp = new http\Message\Body;
+var_dump($temp->getBoundary());
 $temp->addPart(new http\Message("This: is a header\n\nand this is the data\n"));
+var_dump($temp->getBoundary());
 echo $temp;
 
 ?>
 DONE
 --EXPECTF--
 Test
+NULL
+string(%d) "%x.%x"
 --%x.%x
 This: is a header
 Content-Length: 21