Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.
composer require "mockery/mockery:1.0"
| 包名 | 版本要求 |
|---|---|
| hamcrest/hamcrest-php | ~2.0 |
| lib-pcre | >=7.0 |
| php | >=5.6.0 |
| 包名 | 版本要求 |
|---|---|
| phpunit/phpunit | ~5.7|~6.1 |
| 许可证 | BSD-3-Clause |
|---|---|
| 发布时间 | 2017-10-06 16:20:43 |
| 类型 | library |