From 90ef9dded330cde91977a25249f616402f9f7d7f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 25 Mar 2026 00:02:44 +0100 Subject: [PATCH] Require newer `ipl/*` releases Raise the minimum `ipl/*` requirements to versions that include the strict-typing updates and PHP 8.5 support. Use `ipl\Html\Test\TestCase` instead of `ipl\Tests\Html\TestCase`, as `ipl/html` moved its test helper from `ipl\Tests\Html` to `ipl\Html\Test`; drop the `autoload-dev` mapping that worked around the old location. --- composer.json | 13 ++++++------- tests/Compat/CompatFormTest.php | 2 +- .../AutosubmitIndicationDecoratorTest.php | 2 +- .../Compat/FormDecorator/CheckboxDecoratorTest.php | 2 +- .../FormDecorator/DescriptionDecoratorTest.php | 2 +- tests/Compat/FormDecorator/LabelDecoratorTest.php | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 1534baa9..d7d97347 100644 --- a/composer.json +++ b/composer.json @@ -12,19 +12,18 @@ }, "autoload-dev": { "psr-4": { - "ipl\\Tests\\Web\\": "tests", - "ipl\\Tests\\Html\\": "vendor/ipl/html/tests" + "ipl\\Tests\\Web\\": "tests" } }, "require": { "php": ">=8.2", "ext-json": "*", "psr/http-message": "^1.1", - "ipl/html": ">=0.9.0", - "ipl/i18n": ">=0.2.0", - "ipl/orm": ">=0.5.2", - "ipl/scheduler": ">=0.1.0", - "ipl/stdlib": ">=0.13.0", + "ipl/html": ">=0.10.0", + "ipl/i18n": ">=1.0.0", + "ipl/orm": ">=0.8.0", + "ipl/scheduler": ">=0.3.0", + "ipl/stdlib": ">=0.15.0", "fortawesome/font-awesome": "^6", "wikimedia/less.php": "^3.2.1" }, diff --git a/tests/Compat/CompatFormTest.php b/tests/Compat/CompatFormTest.php index 81962352..3f43a7ad 100755 --- a/tests/Compat/CompatFormTest.php +++ b/tests/Compat/CompatFormTest.php @@ -3,9 +3,9 @@ namespace ipl\Tests\Web\Compat; use ipl\Html\FormElement\SubmitElement; +use ipl\Html\Test\TestCase; use ipl\I18n\NoopTranslator; use ipl\I18n\StaticTranslator; -use ipl\Tests\Html\TestCase; use ipl\Web\Compat\CompatForm; class CompatFormTest extends TestCase diff --git a/tests/Compat/FormDecorator/AutosubmitIndicationDecoratorTest.php b/tests/Compat/FormDecorator/AutosubmitIndicationDecoratorTest.php index 3555efb9..e78b89f7 100644 --- a/tests/Compat/FormDecorator/AutosubmitIndicationDecoratorTest.php +++ b/tests/Compat/FormDecorator/AutosubmitIndicationDecoratorTest.php @@ -5,9 +5,9 @@ use ipl\Html\FormDecoration\FormElementDecorationResult; use ipl\Html\FormElement\CheckboxElement; use ipl\Html\FormElement\TextElement; +use ipl\Html\Test\TestCase as IplHtmlTestCase; use ipl\I18n\NoopTranslator; use ipl\I18n\StaticTranslator; -use ipl\Tests\Html\TestCase as IplHtmlTestCase; use ipl\Web\Compat\FormDecorator\AutosubmitIndicationDecorator; class AutosubmitIndicationDecoratorTest extends IplHtmlTestCase diff --git a/tests/Compat/FormDecorator/CheckboxDecoratorTest.php b/tests/Compat/FormDecorator/CheckboxDecoratorTest.php index d8b75bf2..6e024f5c 100644 --- a/tests/Compat/FormDecorator/CheckboxDecoratorTest.php +++ b/tests/Compat/FormDecorator/CheckboxDecoratorTest.php @@ -5,7 +5,7 @@ use ipl\Html\FormDecoration\FormElementDecorationResult; use ipl\Html\FormElement\CheckboxElement; use ipl\Html\Html; -use ipl\Tests\Html\TestCase as IplHtmlTestCase; +use ipl\Html\Test\TestCase as IplHtmlTestCase; use ipl\Web\Compat\FormDecorator\CheckboxDecorator; class CheckboxDecoratorTest extends IplHtmlTestCase diff --git a/tests/Compat/FormDecorator/DescriptionDecoratorTest.php b/tests/Compat/FormDecorator/DescriptionDecoratorTest.php index e781440a..0930db5f 100644 --- a/tests/Compat/FormDecorator/DescriptionDecoratorTest.php +++ b/tests/Compat/FormDecorator/DescriptionDecoratorTest.php @@ -4,8 +4,8 @@ use ipl\Html\FormDecoration\FormElementDecorationResult; use ipl\Html\FormElement\TextElement; +use ipl\Html\Test\TestCase as IplHtmlTestCase; use ipl\Web\Compat\FormDecorator\DescriptionDecorator; -use ipl\Tests\Html\TestCase as IplHtmlTestCase; class DescriptionDecoratorTest extends IplHtmlTestCase { diff --git a/tests/Compat/FormDecorator/LabelDecoratorTest.php b/tests/Compat/FormDecorator/LabelDecoratorTest.php index 0d1c68d2..a90ea5ab 100755 --- a/tests/Compat/FormDecorator/LabelDecoratorTest.php +++ b/tests/Compat/FormDecorator/LabelDecoratorTest.php @@ -5,9 +5,9 @@ use ipl\Html\Contract\Form; use ipl\Html\FormDecoration\FormElementDecorationResult; use ipl\Html\FormElement\TextElement; +use ipl\Html\Test\TestCase as IplHtmlTestCase; use ipl\I18n\NoopTranslator; use ipl\I18n\StaticTranslator; -use ipl\Tests\Html\TestCase as IplHtmlTestCase; use ipl\Web\Compat\FormDecorator\LabelDecorator; class LabelDecoratorTest extends IplHtmlTestCase