uopz

pecl install 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

Maintainer

  • Remi Collet (lead )
  • Joe Watkins (lead )

Details

Stars: 349
Issue openned: 10
Downloads: 741078
5.0.2
7 years ago
Download DLL for processor with 64 bits architecture (x64)
PHP 7.2
Loading...
PHP 7.1
Loading...
PHP 7.0
Loading...
Download DLL for processor with 32 bits architecture (x86)
PHP 7.2
Loading...
PHP 7.1
Loading...
PHP 7.0
Loading...
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.
Version 5.0.2 change log


- add uopz.disable ini switch (default 0)
- fix gh#43: setting hook on __invoke method doesn't work on call_user_func
- fix gh#48: segmentation fault (uopz_set_return)
- add 4 new functions:
- uopz_call_user_func(callable function, ... args)
- uopz_get_exit_status()
- uopz_allow_exit(bool allow)
- uopz_call_user_func_array(callable function, array args)
- fix PHP 7.1 compatibility
- fix PHP 7.2 compatibility

requires:

  • php >=7.0.0
  • pearinstaller >=1.10