]> granicus.if.org Git - php/commitdiff
junit testcase classname is used as filename on azure
authorJoe Watkins <krakjoe@php.net>
Wed, 5 Jun 2019 17:27:50 +0000 (19:27 +0200)
committerJoe Watkins <krakjoe@php.net>
Wed, 5 Jun 2019 17:27:50 +0000 (19:27 +0200)
run-tests.php

index 6810c77865f04d2739eccbeea8489594b27e78fe..be4eb1d155570d4b9157277b1be1b85ca4837865 100755 (executable)
@@ -3437,7 +3437,7 @@ function junit_mark_test_as($type, $file_name, $test_name, $time = null, $messag
        $escaped_message = htmlspecialchars($message, ENT_QUOTES, 'UTF-8');
 
        $escaped_test_name = htmlspecialchars($test_name, ENT_QUOTES);
-       $JUNIT['files'][$file_name]['xml'] = "<testcase classname='" . $suite . "." . basename($file_name) . "' name='$escaped_test_name' time='$time'>\n";
+       $JUNIT['files'][$file_name]['xml'] = "<testcase classname='$file_name' name='$escaped_test_name' time='$time'>\n";
 
        if (is_array($type)) {
                $output_type = $type[0] . 'ED';