Skip to content

[FIX] Language: Check logged problems in the tests with PHPUnit 13.4 - #12387

Merged
c-knof merged 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/language-tests-error-log
Nov 5, 2026
Merged

c-knof merged 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/language-tests-error-log

Conversation

@c-knof

@c-knof c-knof commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Since PHPUnit 13.4, error_log() is only captured after expectErrorLog(), so the 13 tests checking reported problems with expectOutputRegex() failed. The new trait CapturesErrorLog redirects the error log to a file per test, checks its content and fails a test on unexpected log entries.

Since PHPUnit 13.4, `error_log()` is only captured after `expectErrorLog()`,
so the 13 tests checking reported problems with `expectOutputRegex()` failed.
The new trait `CapturesErrorLog` redirects the error log to a file per test,
checks its content and fails a test on unexpected log entries.
@c-knof c-knof self-assigned this Nov 5, 2026
@c-knof c-knof added improvement php Pull requests that update Php code labels Nov 5, 2026
@c-knof
c-knof merged commit a498727 into ILIAS-eLearning:release_12 Nov 5, 2026
2 of 6 checks passed
@c-knof
c-knof deleted the fix/r12/ck/language-tests-error-log branch November 5, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant