diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67d292d..2f3eecb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,6 @@ on: [push, pull_request] jobs: blackbox: uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main - with: - scenarii: 20 # optional coverage: uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main secrets: inherit @@ -14,5 +12,3 @@ jobs: uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main cs: uses: innmind/github-workflows/.github/workflows/cs.yml@main - with: - php-version: '8.2' 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/CHANGELOG.md b/CHANGELOG.md index 49a084d..e61a881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [Unreleased] + +### Changed + +- Requires PHP `8.4` +- Requires `innmind/filesystem:~9.0` + ## 1.7.0 - 2025-04-14 ### Added 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 diff --git a/composer.json b/composer.json index 8afccdf..e16636b 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,9 @@ "issues": "http://github.com/innmind/hash/issues" }, "require": { - "php": "~8.2", - "innmind/immutable": "~4.5|~5.0", - "innmind/filesystem": "~7.0|~8.0" + "php": "~8.4", + "innmind/immutable": "~6.0", + "innmind/filesystem": "~9.0" }, "autoload": { "psr-4": { @@ -30,8 +30,8 @@ } }, "require-dev": { - "innmind/static-analysis": "^1.2.1", - "innmind/black-box": "~6.1", + "innmind/static-analysis": "~1.3", + "innmind/black-box": "~6.2", "innmind/coding-standard": "~2.0" } } diff --git a/tests/FunctionalTest.php b/tests/FunctionalTest.php index da62309..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, @@ -16,19 +16,20 @@ class FunctionalTest extends TestCase { use BlackBox; - public function testHash() + public function testHash(): BlackBox\Proof { - $files = Filesystem::mount(Path::of('fixtures/')) + $files = Adapter::mount(Path::of('fixtures/')) + ->unwrap() ->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(),