Skip to content

Commit f860ec8

Browse files
kubawerlossebastianbergmann
authored andcommitted
Update test to expect correct values
1 parent 10a92a9 commit f860ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/end-to-end/regression/5891/Issue5891Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testVariadicParam(): void
2020
->method('foo')
2121
->with($this->callback(static function (...$items): bool
2222
{
23-
self::assertSame([1], $items); // should be "self::assertSame([1, 2, 3], $items);"
23+
self::assertSame([1, 2, 3], $items);
2424

2525
return true;
2626
}));
@@ -36,7 +36,7 @@ public function testTwoParametersAndVariadicParam(): void
3636
->with($this->callback(static function ($head, ...$tail): bool
3737
{
3838
self::assertSame('1st', $head);
39-
self::assertSame([], $tail); // should be "self::assertSame(['2nd', '3rd', '4th'], $tail);"
39+
self::assertSame(['2nd', '3rd', '4th'], $tail);
4040

4141
return true;
4242
}));

0 commit comments

Comments
 (0)