From 44ad5cb1d37f94cfe4d7e65bde6c75a114746f2b Mon Sep 17 00:00:00 2001 From: meus Date: Sun, 2 Sep 2007 20:12:45 +0000 Subject: [PATCH] fixing run.php to alert if testing with invalid group --- tests/run.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {