silverstripe-framework/tests/php/Control/Email/MailerTest/MockMailer.php
2016-12-19 16:08:19 +13:00

18 lines
458 B
PHP

<?php
namespace SilverStripe\Control\Tests\Email\MailerTest;
use SilverStripe\Control\Email\Mailer;
use SilverStripe\Dev\TestOnly;
/**
* Mocks the sending of emails without actually sending anything
*/
class MockMailer extends Mailer implements TestOnly
{
protected function email($to, $subjectEncoded, $fullBody, $headersEncoded, $bounceAddress)
{
return array($to, $subjectEncoded, $fullBody, $headersEncoded, $bounceAddress);
}
}