public function add($email, $name = null) { $rcpt = array(); if (null !== $name) { $rcpt['name'] = $name; } $rcpt['email'] = $email; return $this->addRecipients(array($rcpt)); }
public function testToString() { $q = new Queue('*****@*****.**', 'Some One'); $q->add('*****@*****.**', 'Someone Else'); $this->assertEquals('Some One <*****@*****.**>, Someone Else <*****@*****.**>', (string) $q); }