diff --git a/tests/run.php b/tests/run.php index 0d3664f2c..7597fd562 100644 --- a/tests/run.php +++ b/tests/run.php @@ -430,9 +430,12 @@ if(isset($argv[0]) && $argv[0] == "coverage"){ $coverage = true; } -if( ! empty($argv)){ +if( ! empty($argv)) { $testGroup = new GroupTest("Custom"); - foreach($argv as $group){ + foreach($argv as $group) { + if( ! isset($$group)) { + die($group . " is not a valid group of tests\n"); + } $testGroup->addTestCase($$group); } } else {