PHP Class phpmock\MockTest

See also: Mock
Author: Markus Malkusch ([email protected])
Inheritance: extends AbstractMockTest
Show file Open project: php-mock/php-mock

Public Methods

Method Description
testDisableAll ( ) Tests disableAll().
testEnable ( ) Tests enable().
testReenable ( ) Tests disabling and enabling again.

Protected Methods

Method Description
defineFunction ( $namespace, $functionName )
disableMocks ( )
mockFunction ( $namespace, $functionName, callable $function )

Method Details

defineFunction() protected method

protected defineFunction ( $namespace, $functionName )

disableMocks() protected method

protected disableMocks ( )

mockFunction() protected method

protected mockFunction ( $namespace, $functionName, callable $function )
$function callable

testDisableAll() public method

Tests disableAll().
public testDisableAll ( )

testEnable() public method

Tests enable().
public testEnable ( )

testReenable() public method

Tests disabling and enabling again.
public testReenable ( )