Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class MailRecorder implements Swift_Events_EventListener |
||
14 | { |
||
15 | /** |
||
16 | * @var mixed |
||
17 | */ |
||
18 | protected $test; |
||
19 | |||
20 | /** |
||
21 | * MailRecorder constructor. |
||
22 | * |
||
23 | * @param mixed $test The PhpUnit TestCase class to use |
||
24 | */ |
||
25 | 2 | public function __construct($test) |
|
28 | 2 | } |
|
29 | |||
30 | /** |
||
31 | * Called by Laravel before email is given to the transporter. |
||
32 | * |
||
33 | * Passes the email to the test, so that assertions can be ran against the messages. |
||
34 | * |
||
35 | * @param Swift_Events_SendEvent $event |
||
36 | */ |
||
37 | 1 | public function beforeSendPerformed(Swift_Events_SendEvent $event) |
|
42 |