public function testToString() { $q = new Queue('*****@*****.**', 'Some One'); $q->add('*****@*****.**', 'Someone Else'); $this->assertEquals('Some One <*****@*****.**>, Someone Else <*****@*****.**>', (string) $q); }
/** * Add a recipient to the queue * * @param string $email * @param string $name * @return \Pop\Mail\Mail */ public function add($email, $name = null) { $this->queue->add($email, $name); return $this; }