uopz_set_mock

PECL uopz 5, PECL uopz 6, PECL uopz 7
uopz_set_mock - Use mock instead of class for new objects
Manual
Code Examples

Example #1 uopz_set_mock example

Result: mockA
PHP Version:

Example #2 uopz_set_mock example

Result: mockA
PHP Version:

Example #3 uopz_set_mock and static members

Result: A A
PHP Version: