Skip to content

Commit cc161ee

Browse files
authored
Fix: broken tests since Pest 1.14 (#40)
1 parent e03398f commit cc161ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require-dev": {
2424
"bentools/cartesian-product": "^1.3",
2525
"doctrine/coding-standard": "^8.2",
26-
"pestphp/pest": "^1.0",
26+
"pestphp/pest": "^1.0,<=1.13",
2727
"phpstan/extension-installer": "^1.1",
2828
"phpstan/phpstan": "^0.12.67",
2929
"phpstan/phpstan-strict-rules": "^0.12.9",

tests/IterableMapTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
it('maps a Traversable object', function (): void {
2727
$iterable = SplFixedArray::fromArray(['foo', 'bar']);
2828
$map = 'strtoupper';
29-
$mapped = iterable_map($iterable, $map);
29+
$mapped = iterable_map($iterable, $map); // @phpstan-ignore-line
3030
assert($mapped instanceof Traversable);
3131
assertSame(['FOO', 'BAR'], iterable_to_array($mapped));
3232
});

tests/IterableReduceTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
$reduce = static function (?int $carry, int $item): int {
2424
return (int) $carry + $item;
2525
};
26-
assertSame(3, iterable_reduce($iterable, $reduce, 0));
26+
assertSame(3, iterable_reduce($iterable, $reduce, 0)); // @phpstan-ignore-line
2727
});

0 commit comments

Comments
 (0)