public function testSetGetParts() { $msg = new Zend_Mime_Message(); // No Parts $p = $msg->getParts(); $this->assertTrue(is_array($p)); $this->assertTrue(count($p) == 0); $p2 = array(); $p2[] = new Zend_Mime_Part('This is a test'); $p2[] = new Zend_Mime_Part('This is another test'); $msg->setParts($p2); $p = $msg->getParts(); $this->assertTrue(is_array($p)); $this->assertTrue(count($p) == 2); }