push() public method

Push the content to the recipients.
public push ( array $options = [] ) : Horde_Push
$options array Additional options.
return Horde_Push This content element.
Exemplo n.º 1
0
 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]);
 }