Lines Matching refs:file_name

2789  * @param string $file_name
2796 function junit_mark_test_as($type, $file_name, $test_name, $time = null, $message = '', $details = … argument
2800 $suite = junit_get_suitename_for($file_name);
2804 $time = null !== $time ? $time : junit_get_timer($file_name);
2813 $escaped_test_name = basename($file_name) . ' - ' . htmlspecialchars($test_name, ENT_QUOTES);
2814 …$JUNIT['files'][$file_name]['xml'] = "<testcase classname='$suite' name='$escaped_test_name' time=…
2828 $JUNIT['files'][$file_name]['xml'] .= "<error type='$output_type' message='$escaped_message'/>\n";
2831 $JUNIT['files'][$file_name]['xml'] .= "<skipped>$escaped_message</skipped>\n";
2834 $JUNIT['files'][$file_name]['xml'] .= "<warning>$escaped_message</warning>\n";
2837 …$JUNIT['files'][$file_name]['xml'] .= "<failure type='$output_type' message='$escaped_message'>$es…
2840 …$JUNIT['files'][$file_name]['xml'] .= "<error type='$output_type' message='$escaped_message'>$esca…
2843 $JUNIT['files'][$file_name]['xml'] .= "</testcase>\n";
2854 function junit_get_timer($file_name) { argument
2858 if (isset($JUNIT['files'][$file_name]['total'])) {
2859 return number_format($JUNIT['files'][$file_name]['total'], 4);
2865 function junit_start_timer($file_name) { argument
2869 if (!isset($JUNIT['files'][$file_name]['start'])) {
2870 $JUNIT['files'][$file_name]['start'] = microtime(true);
2872 $suite = junit_get_suitename_for($file_name);
2874 $JUNIT['suites'][$suite]['files'][$file_name] = $file_name;
2878 function junit_get_suitename_for($file_name) { argument
2879 return junit_path_to_classname(dirname($file_name));
2882 function junit_path_to_classname($file_name) { argument
2884 return $JUNIT['name'] . '.' . str_replace(DIRECTORY_SEPARATOR, '.', $file_name);
2908 function junit_finish_timer($file_name) { argument
2912 if (!isset($JUNIT['files'][$file_name]['start'])) {
2913 error("Timer for $file_name was not started!");
2916 if (!isset($JUNIT['files'][$file_name]['total'])) {
2917 $JUNIT['files'][$file_name]['total'] = 0;
2920 $start = $JUNIT['files'][$file_name]['start'];
2921 $JUNIT['files'][$file_name]['total'] += microtime(true) - $start;
2922 unset($JUNIT['files'][$file_name]['start']);