MockSimple.php

Go to the documentation of this file.
00001 <?php
00002 
00031 class Robo47_Mail_Transport_MockSimple extends Zend_Mail_Transport_Abstract
00032 {
00033 
00038     public $mails = array();
00043     public $count = 0;
00044 
00048     public function _sendMail()
00049     {
00050         $this->mails[] = array(
00051             'mail' => $this->_mail,
00052             'subject' => $this->_mail->getSubject(),
00053             'from' => $this->_mail->getFrom(),
00054             'recipients' => $this->_mail->getRecipients(),
00055         );
00056         $this->count++;
00057     }
00058 }