Skip to content

Commit 55b604c

Browse files
committed
Support older phpunit version
Tested with phpunit 5.7.27
1 parent d5e920a commit 55b604c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neotest-phpunit/utils.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ local function make_outputs(test, output_file)
6060
local test_id = test_attr.file .. separator .. test_attr.line
6161
logger.info("PHPUnit id:", { test_id })
6262

63+
local classname = test_attr.classname or test_attr.class
6364
local test_output = {
6465
status = "passed",
65-
short = string.upper(test_attr.classname) .. "\n-> " .. "PASSED" .. " - " .. test_attr.name,
66+
short = string.upper(classname) .. "\n-> " .. "PASSED" .. " - " .. test_attr.name,
6667
output_file = output_file,
6768
}
6869

0 commit comments

Comments
 (0)