/** * @param string $className '' if the class under test * @param string $methodName * @param string $paramName * * @return string */ private function loadHistory($className, $methodName, $paramName) { if ($className !== '') { // This is for the return value of a mocked method call $default = $this->inputHistory->getInputStringFromHistory($className, $methodName); } else { // This is for a parameter $default = $this->inputHistory->getInputStringFromHistory($methodName, $paramName); } return $default; }
/** * Execute the method under test and generate a test for it. * * @return void */ public function start() { try { $executionResult = $this->runner->run(); } catch (AbortException $ex) { $this->inputHistory->saveHistoryToFile(); return; } $this->inputHistory->saveHistoryToFile(); $this->rendererService->render($executionResult); if ($this->globalComputedConfig->isGenerateSpec()) { $this->specRenderer->genSpec($executionResult); } }