public function compose($subject, $body) { $this->cleanup(); $this->setSubject($subject); $this->setBody($body); return $this; }
public function testRealdSendMailError() { $mail = new Mail(); $this->assertFalse($mail->compose('foobar', 'phpunit')->address('*****@*****.**')->send()); $this->assertFalse(empty($mail->getError())); }