From b390a32b4366508518643301fa2e44719c86db69 Mon Sep 17 00:00:00 2001 From: Dirk Adler Date: Wed, 23 Oct 2024 21:58:30 +0200 Subject: [PATCH] ci: tweak tests --- phpunit.xml | 37 +++++++++++++++++++-------------- resources/phpunit/bootstrap.php | 2 ++ tests/RdKafka/TopicConfTest.php | 2 +- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index d3da7fa4..9a4b1524 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,18 +1,23 @@ - - - - tests/ - - - - - src/ - - - src/constants.php - src/RdKafka/FFI/Methods.php - src/RdKafka/FFI/Versions - - + + + + tests/ + + + + + src/ + + + src/constants.php + src/RdKafka/FFI/Methods.php + src/RdKafka/FFI/Versions + + diff --git a/resources/phpunit/bootstrap.php b/resources/phpunit/bootstrap.php index a196517c..146cf6a7 100644 --- a/resources/phpunit/bootstrap.php +++ b/resources/phpunit/bootstrap.php @@ -1,5 +1,7 @@ setOpaque($expectedTopicOpaque); $topicConf->setPartitionerCb( - function (string $key, int $partitionCount, ?object $topic_opaque = null, ?object $message_opaque = null) use (&$callbackTopicOpaque, &$callbackMessageOpaque) { + function (?string $key, int $partitionCount, ?object $topic_opaque = null, ?object $message_opaque = null) use (&$callbackTopicOpaque, &$callbackMessageOpaque) { $callbackTopicOpaque = $topic_opaque; $callbackMessageOpaque = $message_opaque; // force partition 2