$this->assertEquals(3, $this->temp->append("yes"));
}
- function testAdd() {
+ function testAddForm() {
$this->assertTrue(
- $this->temp->add(
+ $this->temp->addForm(
array(
"foo" => "bar",
"more" => array(
"\r\n".
"fuz\r\n".
"--%x.%x\r\n".
- "Content-Disposition: attachment; name=\"upload\"; filename=\"MessageBodyTest.php\"\r\n".
+ "Content-Disposition: form-data; name=\"upload\"; filename=\"MessageBodyTest.php\"\r\n".
"Content-Transfer-Encoding: binary\r\n".
"Content-Type: text/plain\r\n".
"\r\n".
);
$this->assertEquals($s, (string) $this->file);
}
+
+ function testClone() {
+ $this->assertEquals((string) $this->file, (string) clone $this->file);
+ }
}