public function setWithTest(atoum\test $test) { if ($this->callIsSet()->adapter === null) { parent::setWith(clone php\mocker::getAdapter()); } $this->setFunction($test->getTestedClassNamespace() . '\\' . $this->getFunction()); return parent::setWithTest($test); }
public function setWithTest(test $test) { parent::setWithTest($test); $function = $this->call->getFunction(); if ($function !== null) { $this->setWith($function); } return $this; }