diff --git a/CHANGELOG.md b/CHANGELOG.md index 5da1219..1a2b673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Added + +- Support for `innmind/black-box` `6` + ## 2.2.0 - 2023-09-16 ### Added diff --git a/composer.json b/composer.json index ae41167..8ee5c80 100644 --- a/composer.json +++ b/composer.json @@ -30,13 +30,13 @@ } }, "require-dev": { - "phpunit/phpunit": "~10.2", - "innmind/black-box": "~5.0", + "phpunit/phpunit": "~10.2|~11.0|~12.0", + "innmind/black-box": "~5.0|^6.0.1", "vimeo/psalm": "~5.6", "innmind/coding-standard": "~2.0" }, "conflict": { - "innmind/black-box": "<5.0|~6.0" + "innmind/black-box": "<5.0|~7.0" }, "suggest": { "innmind/black-box": "For property based testing" diff --git a/tests/Fixtures/MediaTypeTest.php b/tests/Fixtures/MediaTypeTest.php index 3d6aeb0..ab0a11d 100644 --- a/tests/Fixtures/MediaTypeTest.php +++ b/tests/Fixtures/MediaTypeTest.php @@ -24,7 +24,13 @@ public function testInterface() foreach ($set->values(Random::default) as $value) { $this->assertInstanceOf(Set\Value::class, $value); - $this->assertTrue($value->isImmutable()); + + if (\interface_exists(Set\Implementation::class)) { + $this->assertTrue($value->immutable()); + } else { + $this->assertTrue($value->isImmutable()); + } + $this->assertInstanceOf(Model::class, $value->unwrap()); } }