Download the PHP package cheprasov/php-extra-mocks without Composer
On this page you can find all versions of the php package cheprasov/php-extra-mocks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cheprasov/php-extra-mocks
More information about cheprasov/php-extra-mocks
Files in cheprasov/php-extra-mocks
Download cheprasov/php-extra-mocks
More information about cheprasov/php-extra-mocks
Files in cheprasov/php-extra-mocks
Vendor cheprasov
Package php-extra-mocks
Short Description ExtraMocks are a tools that give extra functionality for Mocks.
License MIT
Homepage http://github.com/cheprasov/php-extra-mocks
Package php-extra-mocks
Short Description ExtraMocks are a tools that give extra functionality for Mocks.
License MIT
Homepage http://github.com/cheprasov/php-extra-mocks
Please rate this library. Is it a good library?
Informations about the package php-extra-mocks
ExtraMocks v1.0.0 for PHP >= 5.5
About
ExtraMocks are a tools that give extra functionality for Mocks.
Main features
- Allow to redefine global function in namespaces.
Usage
\ExtraMocks\Mocks :: mockGlobalFunction ( string
$fullName , mixed|callable
$result [, int|null
$count = null ] )
Redefine global function.
Method Pameters
- string $fullName - name with namespace of function for redefine
- mixed|callable $result - new function or result
- int|null $count, default = null. Count of mocked calls
\ExtraMocks\Mocks :: getCountCalls ( string
$fullName )
Get count of mocked calls
Method Pameters
- string $fullName - fullname of redefined function
Examples
Installation
Composer
Download composer:
wget -nc http://getcomposer.org/composer.phar
and add dependency to your project:
php composer.phar require cheprasov/php-extra-mocks
Running tests
-
To run tests type in console:
./vendor/bin/phpunit
Something doesn't work
Feel free to fork project, fix bugs and finally request for pull
All versions of php-extra-mocks with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
The package cheprasov/php-extra-mocks contains the following files
Loading the files please wait ....