assertTrue($message->addToRecipient("travis@trstx.com", "travis swientek") == true); //Checks if recipient was added to array. $this->assertContains('travis swientek ', $message->getToRecipients()); //Add a CC recipient $this->assertTrue($message->addCcRecipient("travis@trstx.com", "travis swientek") == true); //Checks if recipient was added to array. $this->assertContains('travis swientek ', $message->getCcRecipients()); //Add a BCC recipient $this->assertTrue($message->addBccRecipient("travis@trstx.com", "travis swientek") == true); //Checks if recipient was added to array. $this->assertContains('travis swientek ', $message->getBccRecipients()); //Add a From address $this->assertTrue($message->setFromAddress("travis@trstx.com", "travis swientek") == true); //Checks if recipient was added to array. $this->assertContains('travis swientek ', $message->getFromAddress()); //Set a subject for the email $this->assertTrue($message->setSubject("This is my subject!") == true); //Checks if subject is added $this->assertEquals('This is my subject!', $message->getSubject()); //Fail to set a subject by calling an empty method $this->assertTrue($message->setSubject() == false); //If failing to set a subject, set the subject to "". $this->assertEquals('', $message->getSubject()); //Set a Text body for the email $this->assertTrue($message->setTextBody("This is my email text.") == true); //Checks if Text body is added $this->assertEquals("This is my email text.", $message->getTextBody()); //Set an HTML body for the email $this->assertTrue($message->setHTMLBody("This is my HTML email.") == true); //Checks if an HTML body is added $this->assertEquals("This is my HTML email.", $message->getHTMLBody()); //Set a Campaign ID $this->assertTrue($message->setCampaignId("My-Super-Awesome-Campaign") == true); //Checks if Campaign ID exists $this->assertContains("My-Super-Awesome-Campaign", $message->getCampaignId()); } } ?>