From cb9f88f97db2788c5fbe769f5d7d011259d21289 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 26 Mar 2024 16:26:54 +0000 Subject: [PATCH] Prevent DNF type tests from being loaded on PHP 8.2 --- phpunit.xml | 3 +- tests/{ => Base}/CallbackTypeTest.php | 14 ++------ .../Fixtures/ClassImplementingInvoke.php | 2 +- .../ClassImplementingIteratorAggregate.php | 2 +- .../Fixtures/ClassImplementingNothing.php | 2 +- .../Fixtures/ClassImplementingToString.php | 2 +- tests/Base/Fixtures/Interface1.php | 7 ++++ tests/Base/Fixtures/Interface2.php | 7 ++++ tests/Fixtures/Interface1.php | 7 ---- tests/Fixtures/Interface2.php | 7 ---- tests/Php82/CallbackTypeTest.php | 36 +++++++++++++++++++ 11 files changed, 59 insertions(+), 30 deletions(-) rename tests/{ => Base}/CallbackTypeTest.php (86%) rename tests/{ => Base}/Fixtures/ClassImplementingInvoke.php (63%) rename tests/{ => Base}/Fixtures/ClassImplementingIteratorAggregate.php (66%) rename tests/{ => Base}/Fixtures/ClassImplementingNothing.php (53%) rename tests/{ => Base}/Fixtures/ClassImplementingToString.php (66%) create mode 100644 tests/Base/Fixtures/Interface1.php create mode 100644 tests/Base/Fixtures/Interface2.php delete mode 100644 tests/Fixtures/Interface1.php delete mode 100644 tests/Fixtures/Interface2.php create mode 100644 tests/Php82/CallbackTypeTest.php diff --git a/phpunit.xml b/phpunit.xml index 07b339d..52f96fc 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,7 +2,8 @@ - ./tests + ./tests/Base + ./tests/Php82 diff --git a/tests/CallbackTypeTest.php b/tests/Base/CallbackTypeTest.php similarity index 86% rename from tests/CallbackTypeTest.php rename to tests/Base/CallbackTypeTest.php index 5b325b1..b5c7f06 100644 --- a/tests/CallbackTypeTest.php +++ b/tests/Base/CallbackTypeTest.php @@ -1,10 +1,10 @@ isSatisfiedBy($given), $matches, $reason . " ($serializedRequire, $serializedGiven)"); + } +}