Lines Matching refs:file_name

3404  * @param string $file_name
3411 function junit_mark_test_as($type, $file_name, $test_name, $time = null, $message = '', $details = … argument
3416 $suite = junit_get_suitename_for($file_name);
3420 $time = $time ?? junit_get_timer($file_name);
3429 $escaped_test_name = htmlspecialchars($file_name . ' (' . $test_name . ')', ENT_QUOTES);
3430 $JUNIT['files'][$file_name]['xml'] = "<testcase name='$escaped_test_name' time='$time'>\n";
3444 … $JUNIT['files'][$file_name]['xml'] .= "<error type='$output_type' message='$escaped_message'/>\n";
3447 $JUNIT['files'][$file_name]['xml'] .= "<skipped>$escaped_message</skipped>\n";
3450 $JUNIT['files'][$file_name]['xml'] .= "<warning>$escaped_message</warning>\n";
3453 …$JUNIT['files'][$file_name]['xml'] .= "<failure type='$output_type' message='$escaped_message'>$es…
3456 …$JUNIT['files'][$file_name]['xml'] .= "<error type='$output_type' message='$escaped_message'>$esca…
3459 $JUNIT['files'][$file_name]['xml'] .= "</testcase>\n";
3471 function junit_get_timer($file_name) argument
3476 if (isset($JUNIT['files'][$file_name]['total'])) {
3477 return number_format($JUNIT['files'][$file_name]['total'], 4);
3483 function junit_start_timer($file_name) argument
3488 if (!isset($JUNIT['files'][$file_name]['start'])) {
3489 $JUNIT['files'][$file_name]['start'] = microtime(true);
3491 $suite = junit_get_suitename_for($file_name);
3493 $JUNIT['suites'][$suite]['files'][$file_name] = $file_name;
3497 function junit_get_suitename_for($file_name) argument
3499 return junit_path_to_classname(dirname($file_name));
3502 function junit_path_to_classname($file_name) argument
3513 if (is_file($file_name)) {
3514 $dir = dirname(realpath($file_name));
3516 $dir = realpath($file_name);
3533 return $JUNIT['name'] . '.' . str_replace(array(DIRECTORY_SEPARATOR, '-'), '.', $file_name);
3558 function junit_finish_timer($file_name) argument
3563 if (!isset($JUNIT['files'][$file_name]['start'])) {
3564 error("Timer for $file_name was not started!");
3567 if (!isset($JUNIT['files'][$file_name]['total'])) {
3568 $JUNIT['files'][$file_name]['total'] = 0;
3571 $start = $JUNIT['files'][$file_name]['start'];
3572 $JUNIT['files'][$file_name]['total'] += microtime(true) - $start;
3573 unset($JUNIT['files'][$file_name]['start']);