uopz

User Operations for Zend


The uopz extension is focused on providing utilities to aid with unit testing PHP code.

It supports the following activities:

* Intercepting function execution
* Intercepting object creation
* Hooking into function execution
* Manipulation of function statics
* Manipulation of function flags
* Redefinition of constants
* Deletion of constants
* Runtime creation of functions and methods

License: PHP License

Latest releases

Version Release Download
7.1.0 2021-08-06 uopz-7.1.0.tgz
7.0.0 2021-07-28 uopz-7.0.0.tgz
6.1.2 2020-06-30 uopz-6.1.2.tgz
6.1.1 2019-09-18 uopz-6.1.1.tgz
6.1.0 2019-05-27 uopz-6.1.0.tgz
Show all releases

Changelog

Version Message
7.1.0 - uopz_implement and uopz_extend have been dropped
- internal rewrite to improve stability and simplify
7.0.0 - Fix #145 uopz_find_hook segfault with PHP 8.0
- Fix #140 segfault with PHPUnit 9.5 caused by uopz_del_function
- Don't remove methods of immutable classes
- PHP 8 support
- Drop PHP 7 support
6.1.2 - make UOPZ compatible with Xdebug again (2.9.4+ required)
6.1.1 - Fix compatibility with 7.4.0RC1
- Fix gh#110 uopz_set_mock function does not work if xdebug is loaded
6.1.0 - Fix #109 uopz_set_hook closure receive extra arguments when function call
through call_user_func and call_user_func_array
- 7.4 support
Show complete changelog