Changes for version 0.05 - 2026-03-19

  • DeepMock:
    • Added args_eq and args_deeply expectation types for exact and deep argument matching
    • Added never expectation type to assert that a spy was not called
  • Meets PBP level 5
  • Disallow setting a mock to undef
  • Add mock_return, mock_exception, and mock_sequence sugar helpers for common mocking patterns.
  • Add mock_once: a one-shot mock that restores itself after the first call.

Documentation

Modules

Advanced mocking library for Perl with support for dependency injection and spies
Declarative, structured mocking and spying for Perl tests

Provides

in lib/Test/Mockingbird.pm