protected function setFunction($function)
{
$this->adapterIsSet()->setTrace()->addToManager()->call->setFunction($function)->unsetArguments();
$this->beforeCalls = array();
$this->afterCalls = array();
return $this;
}
protected function setFunction($function) { if ($this->test !== null) { $lastNamespaceSeparator = strrpos($function, '\\'); if ($lastNamespaceSeparator !== false) { $function = substr($function, $lastNamespaceSeparator + 1); } $function = $this->test->getTestedClassNamespace() . '\\' . $function; } return parent::setFunction($function); }