Eve::EmailStub - a helper stub class that replaces the mailer class.
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);
Eve::EmailStub is the class that uses the Email::Simple class' internal testing feature to replace the sender's engine with a test engine.
Returns testing information about a last sent message.
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.
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.