phpmock\spy\SpyTest::mockFunction PHP Method

mockFunction() protected method

protected mockFunction ( $namespace, $functionName, callable $function )
$function callable
    protected function mockFunction($namespace, $functionName, callable $function)
    {
        $mock = new Spy($namespace, $functionName, $function);
        $mock->enable();
    }