1: <?php
2:
3: /**
4: * Avisota newsletter and mailing system
5: *
6: * PHP Version 5.3
7: *
8: * @copyright bit3 UG 2013
9: * @author Tristan Lins <tristan.lins@bit3.de>
10: * @package avisota-core
11: * @license LGPL-3.0+
12: * @link http://avisota.org
13: */
14:
15: namespace Avisota\Test\Transport;
16:
17: use Avisota\Transport\SmtpTransport;
18:
19: class NoOpTransportProvider implements TransportProviderInterface
20: {
21: protected $succeededStatus;
22:
23: function __construct($succeededStatus)
24: {
25: $this->succeededStatus = $succeededStatus;
26: }
27:
28: /**
29: * @return \Swift_Transport
30: */
31: public function createTransport()
32: {
33: return new NoOpTransport($this->succeededStatus);
34: }
35: }