From b78d2d1211853ae9b841c175e5e531e08c93eff4 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 15 Nov 2025 14:06:44 +0100 Subject: [PATCH 1/7] better integrate test in blackbox --- tests/FunctionalTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/FunctionalTest.php b/tests/FunctionalTest.php index da62309..b7578d1 100644 --- a/tests/FunctionalTest.php +++ b/tests/FunctionalTest.php @@ -16,19 +16,19 @@ class FunctionalTest extends TestCase { use BlackBox; - public function testHash() + public function testHash(): BlackBox\Proof { $files = Filesystem::mount(Path::of('fixtures/')) ->root() ->all() ->toList(); - $this + return $this ->forAll( Set::of(...Hash::cases()), Set::of(...$files), ) - ->then(function($hash, $file) { + ->prove(function($hash, $file) { $this->assertSame( \hash_file($hash->toString(), 'fixtures/'.$file->name()->toString()), $hash->ofFile($file)->hex(), From b40ef9314cea037d028d2b93877da2d0daaf21ee Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 15 Nov 2025 14:07:21 +0100 Subject: [PATCH 2/7] require php 8.4 --- .github/workflows/ci.yml | 12 ++++-------- CHANGELOG.md | 6 ++++++ composer.json | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67d292d..779f162 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,15 +4,11 @@ on: [push, pull_request] jobs: blackbox: - uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main - with: - scenarii: 20 # optional + uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@next coverage: - uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main + uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@next secrets: inherit psalm: - uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main + uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@next cs: - uses: innmind/github-workflows/.github/workflows/cs.yml@main - with: - php-version: '8.2' + uses: innmind/github-workflows/.github/workflows/cs.yml@next diff --git a/CHANGELOG.md b/CHANGELOG.md index 49a084d..3c1efbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Changed + +- Requires PHP `8.4` + ## 1.7.0 - 2025-04-14 ### Added diff --git a/composer.json b/composer.json index 8afccdf..5fc23b6 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "issues": "http://github.com/innmind/hash/issues" }, "require": { - "php": "~8.2", + "php": "~8.4", "innmind/immutable": "~4.5|~5.0", "innmind/filesystem": "~7.0|~8.0" }, From 12790e31ef701089c627e6ddc3fe2713664c0b6f Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 15 Nov 2025 14:08:45 +0100 Subject: [PATCH 3/7] update dependencies --- composer.json | 10 ++++++++-- tests/FunctionalTest.php | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 5fc23b6..d6049e0 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,14 @@ }, "require": { "php": "~8.4", - "innmind/immutable": "~4.5|~5.0", - "innmind/filesystem": "~7.0|~8.0" + "innmind/immutable": "dev-next", + "innmind/filesystem": "dev-next", + "innmind/io": "dev-next", + "innmind/media-type": "dev-next", + "innmind/url": "dev-next", + "innmind/validation": "dev-next", + "innmind/ip": "dev-next", + "innmind/time-continuum": "dev-next" }, "autoload": { "psr-4": { diff --git a/tests/FunctionalTest.php b/tests/FunctionalTest.php index b7578d1..e5cc406 100644 --- a/tests/FunctionalTest.php +++ b/tests/FunctionalTest.php @@ -4,7 +4,7 @@ namespace Tests\Innmind\Hash; use Innmind\Hash\Hash; -use Innmind\Filesystem\Adapter\Filesystem; +use Innmind\Filesystem\Adapter; use Innmind\Url\Path; use Innmind\BlackBox\{ PHPUnit\BlackBox, @@ -18,7 +18,8 @@ class FunctionalTest extends TestCase public function testHash(): BlackBox\Proof { - $files = Filesystem::mount(Path::of('fixtures/')) + $files = Adapter::mount(Path::of('fixtures/')) + ->unwrap() ->root() ->all() ->toList(); From 5ebcf41e597cc34a249e2f241e4bf42866ea707e Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 1 Feb 2026 17:29:31 +0100 Subject: [PATCH 4/7] tag dependencies --- .github/workflows/ci.yml | 8 ++++---- composer.json | 12 +++--------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 779f162..2f3eecb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,11 @@ on: [push, pull_request] jobs: blackbox: - uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@next + uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main coverage: - uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@next + uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main secrets: inherit psalm: - uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@next + uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main cs: - uses: innmind/github-workflows/.github/workflows/cs.yml@next + uses: innmind/github-workflows/.github/workflows/cs.yml@main diff --git a/composer.json b/composer.json index d6049e0..df319da 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,8 @@ }, "require": { "php": "~8.4", - "innmind/immutable": "dev-next", - "innmind/filesystem": "dev-next", - "innmind/io": "dev-next", - "innmind/media-type": "dev-next", - "innmind/url": "dev-next", - "innmind/validation": "dev-next", - "innmind/ip": "dev-next", - "innmind/time-continuum": "dev-next" + "innmind/immutable": "~6.0", + "innmind/filesystem": "~9.0" }, "autoload": { "psr-4": { @@ -36,7 +30,7 @@ } }, "require-dev": { - "innmind/static-analysis": "^1.2.1", + "innmind/static-analysis": "~1.3", "innmind/black-box": "~6.1", "innmind/coding-standard": "~2.0" } From 8772657e11aa5d739bb294bc38ba18a0bce1ae37 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 1 Feb 2026 17:30:30 +0100 Subject: [PATCH 5/7] add extensive CI --- .github/workflows/extensive.yml | 12 ++++++++++++ blackbox.php | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/extensive.yml diff --git a/.github/workflows/extensive.yml b/.github/workflows/extensive.yml new file mode 100644 index 0000000..257f139 --- /dev/null +++ b/.github/workflows/extensive.yml @@ -0,0 +1,12 @@ +name: Extensive CI + +on: + push: + tags: + - '*' + paths: + - '.github/workflows/extensive.yml' + +jobs: + blackbox: + uses: innmind/github-workflows/.github/workflows/extensive.yml@main diff --git a/blackbox.php b/blackbox.php index 0e18e26..519ac78 100644 --- a/blackbox.php +++ b/blackbox.php @@ -10,6 +10,10 @@ }; Application::new($argv) + ->when( + \getenv('BLACKBOX_SET_SIZE') !== false, + static fn(Application $app) => $app->scenariiPerProof((int) \getenv('BLACKBOX_SET_SIZE')), + ) ->when( \getenv('ENABLE_COVERAGE') !== false, static fn(Application $app) => $app From 4c2215cf9f67233c8a018b2b16534c391e515ff1 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 1 Feb 2026 17:31:06 +0100 Subject: [PATCH 6/7] add missing line in changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c1efbf..e61a881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Requires PHP `8.4` +- Requires `innmind/filesystem:~9.0` ## 1.7.0 - 2025-04-14 From f94134b5635ac5dc064cc5b9b624a4f163162461 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 1 Feb 2026 17:32:49 +0100 Subject: [PATCH 7/7] fix minimum version of blackbox --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index df319da..e16636b 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ }, "require-dev": { "innmind/static-analysis": "~1.3", - "innmind/black-box": "~6.1", + "innmind/black-box": "~6.2", "innmind/coding-standard": "~2.0" } }