diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-05 13:40:03 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-05 13:44:43 +0200 |
commit | 01e9c22695a3e495f07ab445750221af72e09fe4 (patch) | |
tree | 63c01a396d289f5f1e4d11259654e772300ff98c /tests/Unit/Mail/Transport/Stub | |
parent | 9d34f371cb9c5ab0d60bd3158678b9cc9da6cc80 (diff) |
Implemented mailing abstraction
Closes #434
Diffstat (limited to 'tests/Unit/Mail/Transport/Stub')
-rw-r--r-- | tests/Unit/Mail/Transport/Stub/TransportImplementation.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/Unit/Mail/Transport/Stub/TransportImplementation.php b/tests/Unit/Mail/Transport/Stub/TransportImplementation.php new file mode 100644 index 00000000..e3667c6e --- /dev/null +++ b/tests/Unit/Mail/Transport/Stub/TransportImplementation.php @@ -0,0 +1,35 @@ +<?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); + } +} |