public function setTestedClassName($className) { if ($this->testedClassName !== null) { throw new exceptions\runtime('Tested class name is already defined'); } $this->testedClassName = $className; return $this; }