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 2d1d8b2..72f402d 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