Search results for "dist:Test-Magpie STUB"
Test::Magpie::Stub - The declaration of a stubbed method
Represents a stub method - a method that may have some sort of action when called. Stub methods are created by invoking the method name (with a set of possible argument matchers/arguments) on the object returned by "when" in Test::Magpie. Stub method...
STEVENL/Test-Magpie-0.11 - 16 Aug 2013 08:36:22 UTC
Test::Magpie - Mocking framework with method stubs and behaviour verification
Test::Magpie is a test double framework heavily inspired by the Mockito framework for Java, and also the Python-Mockito project. In Mockito, you "spy" on objects for their behaviour, rather than being upfront about what should happen. I find this app...
STEVENL/Test-Magpie-0.11 - 16 Aug 2013 08:36:22 UTC
Test::Magpie::When - The process of stubbing a mock method call
A mock object in stub mode to declare a stubbed method. You generate this by calling "when" in Test::Magpie with a mock object. This object has the same API as the mock object - any method call will start the creation of a Test::Magpie::Stub, which c...
STEVENL/Test-Magpie-0.11 - 16 Aug 2013 08:36:22 UTC
Test::Magpie::Mock - Mock objects
Mock objects are the objects you pass around as if they were real objects. They do not have a defined API; any method may be called. Additionally, you can create stubs to specify responses (return values or exceptions) to method calls. A mock objects...
STEVENL/Test-Magpie-0.11 - 16 Aug 2013 08:36:22 UTC