renamed http\Message\Body::add() to ::addForm() because it acually adds form-data...
[m6w6/ext-http] / phpunit / MessageBodyTest.php
index 0218af1bc3550908f333bca3d461f9b8d06bce72..4ef4efe43814f7f2a9c0ed0018c1d5247b2b17ce 100644 (file)
@@ -29,9 +29,9 @@ class MessageBodyTest extends PHPUnit_Framework_TestCase {
         $this->assertEquals(3, $this->temp->append("yes"));
     }
 
         $this->assertEquals(3, $this->temp->append("yes"));
     }
 
-    function testAdd() {
+    function testAddForm() {
         $this->assertTrue( 
         $this->assertTrue( 
-            $this->temp->add(
+            $this->temp->addForm(
                 array(
                     "foo" => "bar",
                     "more" => array(
                 array(
                     "foo" => "bar",
                     "more" => array(