我想模块化函数,但这行不通... public function show_report($db, $id){ $x = $this->get_survey($db, 1); // Use x and y to build a report }
private function get_survey($db
我分叉了Command /Command,并添加了一个命令模块检查,它会引发异常。在测试时,这个异常会导致测试失败,但我正在运行一个测试,以强制异常和失败,以确保它捕获它。 if ($this->containsInvalidCharacters ($suite)) {
throw new \Exception("Suite name '{$suite}' contains invalid characters. ([A-Za-z0-9_]).")