mock_objects.php
protected function dieOnNoMethod($method, $task)
    {
        if ($this->is_strict && ! method_exists($this, $method)) {
            $errormsg = sprintf('Cannot %s. Method %s() not in class %s.', $task, $method, get_class($this));
            trigger_error($errormsg, E_USER_ERROR);
        }
    }
protected function dieOnNoMethod($method, $task)
    {
        if ($this->is_strict && ! method_exists($this, $method)) {
            $errormsg = sprintf('Cannot %s. Method %s() not in class %s.', $task, $method, get_class($this));
            trigger_error($errormsg, E_USER_ERROR);
        }
    }
Triggers a PHP error if the method is not part of this object.

@param string $method        Name of method.
@param string $task          Description of task attempt.