Skip to content

Move TestCase to ipl\Html\Test and clean up for PHP 8.2#194

Merged
lippserd merged 2 commits intomainfrom
tests
Mar 24, 2026
Merged

Move TestCase to ipl\Html\Test and clean up for PHP 8.2#194
lippserd merged 2 commits intomainfrom
tests

Conversation

@lippserd
Copy link
Copy Markdown
Member

@lippserd lippserd commented Mar 24, 2026

Expose TestCase under the ipl\Html\Test namespace so downstream
packages can extend or use it in their own test suites without
adjusting their composer.json.

Drop the pre-namespace PHPUnit_Util_XML compat shim that targeted
PHPUnit 4.x, add native parameter and return types, and align
assertHtml's parameter names with the conventional $expected /
$actual pair.

The class was only reachable via `autoload-dev`, so downstream packages
had no way to extend or use it in their own test suites. Moving it to
`ipl\Html\Test` exposes it through the library's existing autoload
entry, allowing consumers to rely on it without adjusting their
`composer.json`.
Drop the pre-namespace `PHPUnit_Util_XML` compat shim, which targeted
PHPUnit 4.x and has been dead code since the PHP 8.2 requirement was
introduced. Add native parameter and return types throughout, and align
the `assertHtml` parameter names with the conventional `$expected` /
`$actual` pair so the signature reads consistently with PHPUnit's own
assertion API.
@lippserd lippserd added this to the v0.10.0 milestone Mar 24, 2026
@cla-bot cla-bot Bot added the cla/signed label Mar 24, 2026
@lippserd lippserd merged commit ae700e1 into main Mar 24, 2026
13 checks passed
@lippserd lippserd deleted the tests branch March 24, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant