Skip to content

Commit e0ca673

Browse files
committed
update test/BaseTestCase.php
1 parent fb47ea6 commit e0ca673

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/BaseTestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ protected static function getMethod($class, string $method): ReflectionMethod
4747

4848
/**
4949
* @param callable $cb
50+
* @param mixed ...$args
5051
*
5152
* @return Throwable
5253
*/
53-
protected function runAndGetException(callable $cb): Throwable
54+
protected function runAndGetException(callable $cb, ...$args): Throwable
5455
{
5556
try {
56-
$cb();
57+
$cb(...$args);
5758
} catch (Throwable $e) {
5859
return $e;
5960
}

0 commit comments

Comments
 (0)