protected function defineFunction($namespace, $functionName) { $mock = new Mock($namespace, $functionName, function () { }); $mock->define(); }