Download the PHP package console-helpers/prophecy-phpunit without Composer
On this page you can find all versions of the php package console-helpers/prophecy-phpunit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download console-helpers/prophecy-phpunit
More information about console-helpers/prophecy-phpunit
Files in console-helpers/prophecy-phpunit
Download console-helpers/prophecy-phpunit
More information about console-helpers/prophecy-phpunit
Files in console-helpers/prophecy-phpunit
Vendor console-helpers
Package prophecy-phpunit
Short Description Integrating the Prophecy mocking library in PHPUnit test cases
License MIT
Homepage http://phpspec.net
Package prophecy-phpunit
Short Description Integrating the Prophecy mocking library in PHPUnit test cases
License MIT
Homepage http://phpspec.net
Please rate this library. Is it a good library?
Informations about the package prophecy-phpunit
Prophecy
Prophecy PhpUnit integrates the Prophecy mocking library with PHPUnit to provide an easier mocking in your testsuite.
Installation
Prerequisites
Prophecy PhpUnit requires PHP 5.6 or greater. Prophecy PhpUnit requires PHPUnit 5.0 or greater.
Setup through composer
You can read more about Composer on its official webpage.
How to use it
The trait ProphecyTrait
provides a method prophesize($classOrInterface = null)
to use Prophecy.
For the usage of the Prophecy doubles, please refer to the Prophecy documentation.
Below is a usage example:
All versions of prophecy-phpunit with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6 || ^7 || ^8
phpspec/prophecy Version ^1.3
phpunit/phpunit Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
phpspec/prophecy Version ^1.3
phpunit/phpunit Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
The package console-helpers/prophecy-phpunit contains the following files
Loading the files please wait ....