uopz_get_mock

PECL uopz 5, PECL uopz 6, PECL uopz 7
uopz_get_mock - Get the current mock for a class
Manual
Code Examples

uopz_get_mock( string$class ): mixed

Returns the current mock for class.

Parameters

class

The name of the mocked class.

Return Values

Either a string containing the name of the mock, or an object, or null if no mock has been set.

Related Functions

Example of uopz_get_mock

Show all examples for uopz_get_mock

PHP Version: