From 1b1c415f9a41d3653157d3e08f0bd8fbda860f8e Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Tue, 10 Feb 2026 10:17:46 +0100 Subject: [PATCH 1/2] CS --- tests/Set/CompositeTest.php | 3 ++- tests/Set/DecorateTest.php | 3 ++- tests/Set/FromGeneratorTest.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Set/CompositeTest.php b/tests/Set/CompositeTest.php index bb1b8505..b7765136 100644 --- a/tests/Set/CompositeTest.php +++ b/tests/Set/CompositeTest.php @@ -43,7 +43,8 @@ public function testImmutable() $this->assertInstanceOf( Set::class, Composite::immutable( - static function() {}, + static function() { + }, FromGenerator::of(static function() { yield 'e'; yield 'f'; diff --git a/tests/Set/DecorateTest.php b/tests/Set/DecorateTest.php index 884bd1e1..e4b1d478 100644 --- a/tests/Set/DecorateTest.php +++ b/tests/Set/DecorateTest.php @@ -40,7 +40,8 @@ public function testImmutable() $this->assertInstanceOf( Set::class, Decorate::immutable( - static function() {}, + static function() { + }, FromGenerator::of(static function() { yield 'e'; yield 'f'; diff --git a/tests/Set/FromGeneratorTest.php b/tests/Set/FromGeneratorTest.php index 50ee245a..dc93f589 100644 --- a/tests/Set/FromGeneratorTest.php +++ b/tests/Set/FromGeneratorTest.php @@ -28,7 +28,8 @@ public function testThrowWhenTheCallableDoesntReturnAGenerator() $this->expectException(\TypeError::class); $this->expectExceptionMessage('Argument 1 must be of type callable(): \Generator'); - FromGenerator::of(static function() {}); + FromGenerator::of(static function() { + }); } public function testTake() From fbdb5148b81c44549e94d80372d0b16456f2aee1 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Tue, 10 Feb 2026 10:19:03 +0100 Subject: [PATCH 2/2] add support for phpunit 13 --- CHANGELOG.md | 6 ++++++ composer.json | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 765e09f9..25d65fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Added + +- Support for PHPUnit `13` + ## 6.9.0 - 2026-01-18 ### Added diff --git a/composer.json b/composer.json index 13f51f2a..486c345a 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,9 @@ "require": { "php": "~8.2", "symfony/var-dumper": "~6.0|~7.0|~8.0", - "phpunit/phpunit": "~10.0|~11.0|~12.0", - "phpunit/php-timer": "~6.0|~7.0|~8.0", - "phpunit/php-code-coverage": "~10.1|~11.0|~12.0" + "phpunit/phpunit": "~10.0|~11.0|~12.0|~13.0", + "phpunit/php-timer": "~6.0|~7.0|~8.0|~9.0", + "phpunit/php-code-coverage": "~10.1|~11.0|~12.0|~13.0" }, "autoload": { "psr-4": {