NAME
Eve::EmailStub - a helper stub class that replaces the mailer class.
SYNOPSIS
package SomeTestCase;
use Eve::EmailStub;
use Eve::Email;
my $already_mocked_email = Eve::Email->new(from => $from_string);
$already_mocked_email->send(
to => $address,
subject => $subject,
body => $body);
my $delivery = $already_mocked_email->get_delivery();
is(
$delivery->{'envelope'}->{'to'}->[0],
$address);
DESCRIPTION
Eve::EmailStub is the class that uses the Email::Simple class' internal testing feature to replace the sender's engine with a test engine.
METHODS
get_delivery()
Returns testing information about a last sent message.
SEE ALSO
LICENSE AND COPYRIGHT
Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.