public function action_index() { // Display all Unit tests found by default $tests = NULL; if ($this->request->param('test_dir') !== NULL) { $tests = UnitTest::find_tests($this->request->param('test_dir')); } // Display requested tests $this->request->response = UnitTest::factory($tests)->run(); }