From 75721c09be52dc4f1ec5e18f8a275be2c73be924 Mon Sep 17 00:00:00 2001 From: Matthew Setter Date: Fri, 21 Mar 2025 20:51:11 +1000 Subject: [PATCH] Refactor to support PHPUnit's new event system This change refactors some of the test code to support PHPUnit's most recent iteration of its event system. The previous iteration worked for earlier versions, but there was a newer version release in PHPUnit 10.0.7. Signed-off-by: Matthew Setter --- phpunit.xml.dist | 12 +++---- .../IntegrationTestStartedListener.php} | 32 ++++--------------- .../IntegrationTestStoppedListener.php | 31 ++++++++++++++++++ .../Extension/ListenerExtension.php | 22 +++++++++++++ 4 files changed, 63 insertions(+), 34 deletions(-) rename test/integration/{IntegrationTestListener.php => Extension/IntegrationTestStartedListener.php} (57%) create mode 100644 test/integration/Extension/IntegrationTestStoppedListener.php create mode 100644 test/integration/Extension/ListenerExtension.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0d4ce670a..52ce8bc98 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,11 +4,10 @@ xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true"> - - - ./src - - + + + + @@ -19,9 +18,6 @@ - - -