public function getTestedClassNamespace() { $testedClassName = $this->getTestedClassName(); return substr($testedClassName, 0, strrpos($testedClassName, '\\')); }
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); }