/** * Just some info for the reporter */ function run(&$reporter) { $arr = array('class' => get_class($this)); if (method_exists($this, 'get_info')) { $arr = array_merge($arr, $this->get_info()); } $reporter->test_info_stack[] = $arr; parent::run($reporter); array_pop($reporter->test_info_stack); }