public function testRecipients() { $message = <<<EOT Date: Fri, 13 Feb 09 15:47:25 +0100 MIME-Version: 1.0 From: Foo Bar <*****@*****.**> To: John Doe <*****@*****.**> Cc: jane.doe@fake.net, =?UTF-8?Q?Rapha=C3=ABl=20Rougeron?= <*****@*****.**> Bcc: bureaucratic.director@bigbrother.com Subject: Stop these useless meetings... Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit test EOT; $mail = new Mail($this->date); $mail->setFrom('*****@*****.**', 'Foo Bar'); $mail->addTo('*****@*****.**', 'John Doe'); $mail->addCc('*****@*****.**'); $mail->addCc('*****@*****.**', 'Raphaël Rougeron'); // is the above encoded name correct ? not sure... $mail->addBcc('*****@*****.**'); $mail->setSubject('Stop these useless meetings...'); $mail->setText('test'); $this->assertEquals($message, (string) $mail); }