Skip to content

Commit c78f97c

Browse files
authored
Merge pull request #14 from Innmind/blackbox-6
Use BlackBox 6
2 parents eb0893c + 5fb9072 commit c78f97c

File tree

9 files changed

+135
-135
lines changed

9 files changed

+135
-135
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"require-dev": {
2828
"innmind/static-analysis": "^1.2.1",
29-
"innmind/black-box": "~5.5",
29+
"innmind/black-box": "~6.1",
3030
"innmind/coding-standard": "~2.0"
3131
}
3232
}

proofs/each.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
yield proof(
1212
'Each::of()',
1313
given(
14-
Set\Sequence::of(Set\Integers::any()),
15-
Set\Sequence::of(Set\Strings::any())->atLeast(1),
14+
Set::sequence(Set::integers()),
15+
Set::sequence(Set::strings())->atLeast(1),
1616
),
1717
static function($assert, $ints, $strings) {
1818
$assert->true(
@@ -56,7 +56,7 @@ static function($assert, $ints, $strings) {
5656
yield proof(
5757
'Each::of() returns the mapped content',
5858
given(
59-
Set\Sequence::of(Set\Integers::any()),
59+
Set::sequence(Set::integers()),
6060
),
6161
static function($assert, $ints) {
6262
$doubles = \array_map(

proofs/has.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
yield proof(
99
'Has::key()',
1010
given(
11-
Set\Composite::immutable(
11+
Set::compose(
1212
static fn($keys, $values) => \array_combine(
1313
\array_slice($keys, 0, \min(\count($keys), \count($values))),
1414
\array_slice($values, 0, \min(\count($keys), \count($values))),
1515
),
16-
Set\Sequence::of(Set\Either::any(
17-
Set\Integers::any(),
18-
Set\Strings::any(),
16+
Set::sequence(Set::either(
17+
Set::integers(),
18+
Set::strings(),
1919
))->atLeast(1),
20-
Set\Sequence::of(Set\Type::any())->atLeast(1),
20+
Set::sequence(Set::type())->atLeast(1),
2121
),
22-
Set\Strings::atLeast(1),
23-
Set\Type::any(),
22+
Set::strings()->atLeast(1),
23+
Set::type(),
2424
),
2525
static function($assert, $array, $key, $value) {
2626
unset($array[$key]);
@@ -61,19 +61,19 @@ static function($assert, $array, $key, $value) {
6161
yield proof(
6262
'Has::key()->withFailure()',
6363
given(
64-
Set\Composite::immutable(
64+
Set::compose(
6565
static fn($keys, $values) => \array_combine(
6666
\array_slice($keys, 0, \min(\count($keys), \count($values))),
6767
\array_slice($values, 0, \min(\count($keys), \count($values))),
6868
),
69-
Set\Sequence::of(Set\Either::any(
70-
Set\Integers::any(),
71-
Set\Strings::any(),
69+
Set::sequence(Set::either(
70+
Set::integers(),
71+
Set::strings(),
7272
))->atLeast(1),
73-
Set\Sequence::of(Set\Type::any())->atLeast(1),
73+
Set::sequence(Set::type())->atLeast(1),
7474
),
75-
Set\Strings::atLeast(1),
76-
Set\Strings::atLeast(1),
75+
Set::strings()->atLeast(1),
76+
Set::strings()->atLeast(1),
7777
),
7878
static function($assert, $array, $key, $expected) {
7979
unset($array[$key]);

proofs/instance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return static function() {
88
yield proof(
99
'Instance::of()',
10-
given(Set\Type::any()),
10+
given(Set::type()),
1111
static function($assert, $other) {
1212
$std = new stdClass;
1313
$assert->true(

0 commit comments

Comments
 (0)