0
I Use This!
Activity Not Available

Project Summary

Yay! MockA standalone mock object library for PHP 5 (based on jMock)Yay! Mock aims to be a test framework-independent mock object library with the most flexibility possible. Based on jMock (Java) it makes expectations based on Invocation signatures rather than just on method names and/or call timings.

Mock objects only contain the methods of the original type they mock. In other words, mock objects created with Yay! Mock do not have any expectation methods embedded inside them; instead they "record" invocations to the context in which they were created.

Yay! Mock encourages dependency injection and loose coupling without pushing you into corners of testing implementation details. It works with any unit testing framework.

Particular features includeMock interfaces (preferred) or classes Object identities via type-hints remain integral Expect invocations based on signatures Specify return values for specific invocation signatures Specify actions to perform on specific invocation signatures Match signatures loosely based on various Matchers Expect invocations when the environment is in a specific state Expect sequences of Invocations Yay! Mock code (like jMock) is intended to be easy to learn and to understand when read. The code written within test cases is very fluent and expressive.

The current development status is beta 3

Tags

mockobjects php tdd testdrivendevelopment unittesting

In a Nutshell, yaymock...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v3.0 or later
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Use Patent Claims

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis