The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::AutoMock::Mock::Functions - Functions to manipulate mocks

DESCRIPTION

This module provides methods of Test::AutoMock::Mock::Basic.

We defined these methods into different packages so as not to affect the behavior of the mock.

Rather than using this class directly, it would be more convenient to use a wrapper defined for Test::AutoMock.

FUNCTIONS

new_mock

  my $mock1 = new_mock('Test::AutoMock::Mock::Basic');
  my $mock2 = new_mock(
      'Test::AutoMock::Mock::Overloaded',
      methods => { 'some->method' => 1 },
  );

This is a constructor. Pass in the name of the class to instantiate as the first argument.

get_manager

Get the manager object of the mock.

SEE ALSO

Test::AutoMock
Test::AutoMock::Mock::Basic
Test::AutoMock::Mock::Overloaded

LICENSE

Copyright (C) Masahiro Honma.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Masahiro Honma <hiratara@cpan.org>