Eve::DbiStub - a stub for replacing the database in unit tests.
my $data_hash = Eve::DbiStub->get_compiled_data(); my $function_return_data = $data_hash->{'test_function_1'}->{'data'};
Returns compiled data that is to be returned from stored procedures after being processed by a database adapter.
Returns raw data that is to be returned from stored procedures prior to being processed by the database adapter.
Returns a mock statement handle.
Returns a mock database connection handle.
Main procedure that is being run when the module is being required. Fakes the DBI package by replacing it with a Test::MockObject object.
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.