Download the PHP package jced-artem/uopz without Composer
On this page you can find all versions of the php package jced-artem/uopz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jced-artem/uopz
More information about jced-artem/uopz
Files in jced-artem/uopz
Download jced-artem/uopz
More information about jced-artem/uopz
Files in jced-artem/uopz
Vendor jced-artem
Package uopz
Short Description Wrapper for php uopz library's functions. Useful for unit testing for changing function's behavior in runtime
License MIT
Homepage https://github.com/jced-artem
Package uopz
Short Description Wrapper for php uopz library's functions. Useful for unit testing for changing function's behavior in runtime
License MIT
Homepage https://github.com/jced-artem
Please rate this library. Is it a good library?
Informations about the package uopz
uopz
Wrapper for php uopz library's functions. Very useful for unit testing for changing function's behavior in runtime.
Requirements
You can install it:
- for
php-7
:pecl install uopz
- for
php-5.6
:pecl install uopz-2.0.7
Install
Usage
Hook non-return third-party-called function to get return from it
Sometime when you testing bar() you may want to know what happend in foo()
Replace function's return value using list of conditions.
Source function cant be redefined or defined as closure before using this method.
You can mock all calls just doing:
Consistent return
Replace one function with another
Simple return
Just return something, nothing more
Backup function
Restore function
Mute function
Ask function to do nothing :)
Aliases
All versions of uopz with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package jced-artem/uopz contains the following files
Loading the files please wait ....