Skip to content

Commit 2b33281

Browse files
committed
test: correct suite extraction logic
1 parent 82389f8 commit 2b33281

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
return null;
3636
})($GLOBALS['argv'] ?? []);
3737

38-
$suite = \substr($suite, 0, \strpos($suite, '-'));
38+
$suite = \substr($suite, 0, \strpos($suite, '-') ?: \strlen($suite));
3939

4040
# Include related bootstrap
4141
$file = __DIR__ . DIRECTORY_SEPARATOR . $suite . DIRECTORY_SEPARATOR . 'bootstrap.php';

0 commit comments

Comments
 (0)