You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
engelsystem/tests/Unit/Mail/Transport/Stub/TransportImplementation.php

36 lines
721 B
PHP

<?php
namespace Engelsystem\Test\Unit\Mail\Transport\Stub;
use Engelsystem\Mail\Transport\Transport;
use Swift_Mime_SimpleMessage as SimpleMessage;
class TransportImplementation extends Transport
{
/**
* {@inheritdoc}
*/
public function send(SimpleMessage $message, &$failedRecipients = null)
{
return 0;
}
/**
* @param SimpleMessage $message
* @return array
*/
public function getAllRecipients(SimpleMessage $message)
{
return $this->allRecipients($message);
}
/**
* @param SimpleMessage $message
* @return string
*/
public function getGetTo(SimpleMessage $message)
{
return $this->getTo($message);
}
}