1 | <?php |
||
14 | class MailRecorder implements Swift_Events_EventListener |
||
15 | { |
||
16 | /** |
||
17 | * @var PHPUnit_Framework_TestCase |
||
18 | */ |
||
19 | protected $test; |
||
20 | |||
21 | /** |
||
22 | * MailRecorder constructor. |
||
23 | * |
||
24 | * @param PHPUnit_Framework_TestCase $test |
||
25 | */ |
||
26 | public function __construct(PHPUnit_Framework_TestCase $test) |
||
30 | |||
31 | /** |
||
32 | * Called by Laravel before email is given to the transporter. |
||
33 | * |
||
34 | * Passes the email to the test, so that assertions can be ran against the messages. |
||
35 | * |
||
36 | * @param Swift_Events_SendEvent $event |
||
37 | */ |
||
38 | public function beforeSendPerformed(Swift_Events_SendEvent $event) |
||
42 | } |
||
43 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.