CommunityID/tests/Zend_Mail_Transport_Mock.php

35 lines
896 B
PHP
Raw Normal View History

2019-07-17 20:08:50 +00:00
<?php
/*
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
* @license http://creativecommons.org/licenses/BSD/ BSD License
* @author Keyboard Monkeys Ltd.
* @since Textroller 0.9
* @package TextRoller
* @packager Keyboard Monkeys
*/
class Zend_Mail_Transport_Mock extends Zend_Mail_Transport_Abstract
{
/**
* @var Zend_Mail
*/
public $mail = null;
public $returnPath = null;
public $subject = null;
public $from = null;
public $headers = null;
public $called = false;
public function _sendMail()
{
$this->mail = $this->_mail;
$this->subject = $this->_mail->getSubject();
$this->from = $this->_mail->getFrom();
$this->returnPath = $this->_mail->getReturnPath();
$this->headers = $this->_headers;
$this->called = true;
}
}