Skip to content

Commit 6f42441

Browse files
authored
Merge pull request #16 from Innmind/blackbox-7
Use `innmind/black-box` `7`
2 parents d9bd758 + aaa1202 commit 6f42441

3 files changed

Lines changed: 459 additions & 441 deletions

File tree

‎blackbox.php‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@
1010
};
1111

1212
Application::new($argv)
13-
->when(
14-
\getenv('ENABLE_COVERAGE') !== false,
15-
static fn(Application $app) => $app
16-
->scenariiPerProof(1)
13+
->map(static fn($app) => match (\getenv('BLACKBOX_ENV')) {
14+
'coverage' => $app
1715
->codeCoverage(
1816
CodeCoverage::of(
1917
__DIR__.'/src/',
2018
__DIR__.'/proofs/',
2119
)
22-
->dumpTo('coverage.clover')
23-
->enableWhen(true),
24-
),
25-
)
20+
->dumpTo('coverage.clover'),
21+
)
22+
->scenariiPerProof(1),
23+
default => $app,
24+
})
2625
->tryToProve(Load::everythingIn(__DIR__.'/proofs/'))
2726
->exit();

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"innmind/static-analysis": "~1.3",
34-
"innmind/black-box": "~6.5",
34+
"innmind/black-box": "~7.0",
3535
"innmind/coding-standard": "~2.0"
3636
}
3737
}

0 commit comments

Comments
 (0)