X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=phpunit%2FMessageBodyTest.php;h=4ef4efe43814f7f2a9c0ed0018c1d5247b2b17ce;hp=708d3174863d545028f9f3279817fcafd04e7374;hb=de1f7e0ab81d134c3dffe95623b6c27b9ce16235;hpb=3aee7891076f2ced989ab589df41c4a1a070670d diff --git a/phpunit/MessageBodyTest.php b/phpunit/MessageBodyTest.php index 708d317..4ef4efe 100644 --- a/phpunit/MessageBodyTest.php +++ b/phpunit/MessageBodyTest.php @@ -29,9 +29,9 @@ class MessageBodyTest extends PHPUnit_Framework_TestCase { $this->assertEquals(3, $this->temp->append("yes")); } - function testAdd() { + function testAddForm() { $this->assertTrue( - $this->temp->add( + $this->temp->addForm( array( "foo" => "bar", "more" => array( @@ -106,4 +106,8 @@ class MessageBodyTest extends PHPUnit_Framework_TestCase { ); $this->assertEquals($s, (string) $this->file); } + + function testClone() { + $this->assertEquals((string) $this->file, (string) clone $this->file); + } }