Skip to content

Math/ResourceStorage: Fix Tests After PHPUnit 13.4 - #12392

Merged
thojou merged 1 commit into
ILIAS-eLearning:release_12from
thojou:hotfix/12/ci-phpunit
Nov 10, 2026
Merged

thojou merged 1 commit into
ILIAS-eLearning:release_12from
thojou:hotfix/12/ci-phpunit

Conversation

@thojou

@thojou thojou commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

See: ec794e3

The checks workflow on release_12 fails since the 12.0 Beta 1 commit. The dependency update in 958865f pulled PHPUnit 13.4 and sebastian/diff 9.0, which removed UnifiedDiffOutputBuilder.

The Math adapter tests built their failure message with that class, so every numeric assertion errored before comparing the values. The comparison now reports the two numbers directly and no longer depends on a PHPUnit internal class. The parameter order of assertEqualNumbers() is corrected to expected, actual.

CollectionRepositoryTest expected manipulateF() twice with the same arguments. PHPUnit 13.4 rejects a second identical expectation, while CollectionDBRepository::update() calls the method only once. The duplicated expectation is removed.

See: ILIAS-eLearning@ec794e3

The checks workflow on release_12 fails since the 12.0 Beta 1
commit. The dependency update in 958865f pulled PHPUnit 13.4
and sebastian/diff 9.0, which removed UnifiedDiffOutputBuilder.

The Math adapter tests built their failure message with that
class, so every numeric assertion errored before comparing the
values. The comparison now reports the two numbers directly and
no longer depends on a PHPUnit internal class. The parameter
order of assertEqualNumbers() is corrected to expected, actual.

CollectionRepositoryTest expected manipulateF() twice with the
same arguments. PHPUnit 13.4 rejects a second identical
expectation, while CollectionDBRepository::update() calls the
method only once. The duplicated expectation is removed.
@thojou thojou added bugfix php Pull requests that update Php code labels Nov 9, 2026

@chfsx chfsx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@thojou

thojou commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Hey all,

Thank you for the approval.

Since there is currently no authority assigned to the Math component and several other code authorities have approved the changes, I will merge them now.

Kind regards,
@thojou

@thojou
thojou merged commit 3ed87c8 into ILIAS-eLearning:release_12 Nov 10, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Looking for Shepherd php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants