mageekguy\atoum\asserters\adapter\call::setFunction PHP Method

setFunction() protected method

protected setFunction ( $function )
    protected function setFunction($function)
    {
        $this->adapterIsSet()->setTrace()->addToManager()->call->setFunction($function)->unsetArguments();
        $this->beforeCalls = array();
        $this->afterCalls = array();
        return $this;
    }

Usage Example

Beispiel #1
0
 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);
 }