/** * @param \Namshi\Notificator\Notification\Email\SwiftMailer\SwiftMailerNotification $notification * @param \Swift_Message $message * @param \Swift_Mailer $mailer */ function it_handles_emailvision_notification($notification, $message, $mailer) { $notification->getMessage()->willReturn($message)->shouldBeCalled(); $this->handle($notification)->shouldBe(true); $mailer->send($message)->shouldBeCalled(); }