NAME
Test::Mock::MongoDB::MongoClient - mock module for MongoDB::MongoClient class.
SYNOPSIS
You can get test mock object like so:
use Test::Mock::MongoDB qw( any );
my $mock = Test::Mock::MongoDB->new;
my $m_client = $mock->get_client;
DESCRIPTION
Current module mocks MongoDB::MongoClient class.
METHODS
init()
By default mocks methods new()
and get_database()
. Or skips this method if skip_init
passed as true.
AUTHOR
cono <cono@cpan.org>
COPYRIGHT
Copyright 2014 - cono
LICENSE
Artistic v2.0