public function testToConfiguredHeader() { $factory = new Horde_Push_Factory_Recipients(); $recipients = $factory->create(array(), array('recipients' => array('mail-me'), 'recipient' => array('mail-me' => array('type' => 'mail', 'acl' => '*****@*****.**', 'mailer' => array('type' => 'mock', 'from' => '*****@*****.**'))))); $push = new Horde_Push(); $push->setSummary('E-MAIL'); foreach ($recipients as $recipient) { $push->addRecipient($recipient); } $result = $push->push(array('pretend' => true)); $this->assertContains('to: recipient@example.com', $result[0]); }