|
uopz_set_mockUse mock instead of class for new objects Description
void uopz_set_mock(string
$class , mixed $mock )
If
Parameters
Return ValuesNo value is returned. Changelog
ExamplesExample #1 uopz_set_mock example
The above example will output: mockA Example #2 uopz_set_mock example
The above example will output: mockA Example #3 uopz_set_mock and static members As of uopz 6.0.0 mocking static members is no longer supported.
The above example will output: A A Output of the above example in uopz 5: mockA mockA See Also
|