Skip to content

Commit

Permalink
feat: support older phpunit version
Browse files Browse the repository at this point in the history
Tested with phpunit 5.7.27
  • Loading branch information
miduddin authored Mar 21, 2024
1 parent d5e920a commit 5799a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/neotest-phpunit/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ local function make_outputs(test, output_file)
local test_id = test_attr.file .. separator .. test_attr.line
logger.info("PHPUnit id:", { test_id })

local classname = test_attr.classname or test_attr.class
local test_output = {
status = "passed",
short = string.upper(test_attr.classname) .. "\n-> " .. "PASSED" .. " - " .. test_attr.name,
short = string.upper(classname) .. "\n-> " .. "PASSED" .. " - " .. test_attr.name,
output_file = output_file,
}

Expand Down

0 comments on commit 5799a4e

Please sign in to comment.