public function test_get_header_value() { $mail = new SMail($this->date); $mail->set_from('*****@*****.**', 'Foo Bar'); $mail->add_to('*****@*****.**', 'John Doe'); $mail->add_cc('*****@*****.**'); $mail->add_cc('*****@*****.**', 'Raphael Rougeron'); $mail->set_subject('Stop these useless meetings...'); $this->assertEquals('John Doe <*****@*****.**>', $mail->get_to()); $this->assertEquals('Foo Bar <*****@*****.**>', $mail->get_from()); $this->assertEquals('jane.doe@fake.net, Raphael Rougeron <*****@*****.**>', $mail->get_cc()); $this->assertEquals('', $mail->get_bcc()); $this->assertEquals('Stop these useless meetings...', $mail->get_subject()); }