Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ 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
psalm:
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'
12 changes: 12 additions & 0 deletions .github/workflows/extensive.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [Unreleased]

### Changed

- Requires PHP `8.4`
- Requires `innmind/filesystem:~9.0`

## 1.7.0 - 2025-04-14

### Added
Expand Down
4 changes: 4 additions & 0 deletions blackbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}
}
11 changes: 6 additions & 5 deletions tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(),
Expand Down