1
0
mirror of synced 2024-12-14 07:06:04 +03:00

fixing run.php to alert if testing with invalid group

This commit is contained in:
meus 2007-09-02 20:12:45 +00:00
parent 75f2364ed6
commit 44ad5cb1d3

View File

@ -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 {