function loadSuite($names = null)
{
    global $_tests;
    if ($names === null) {
        $names = array();
        foreach ($_tests as $package) {
            $names = array_merge($names, $package['files']);
        }
    }
    $selected = selectTests($names);
    $result = array();
    foreach ($_tests as $package) {
        $result = array_merge($result, loadTests($package['dir'], $selected));
    }
    return $result;
}
Example #2
0
function loadSuite($names = null)
{
    global $_tests;
    $result = array();
    foreach ($_tests as $package) {
        if (!$names) {
            $selected = $package['files'];
        } else {
            $selected = selectTests($package, $names);
        }
        $result = array_merge($result, loadTests($package['dir'], $selected));
    }
    return $result;
}
Example #3
0
function loadSuite($names = null)
{
    global $_test_names;
    global $_test_dir;
    if ($names === null) {
        $names = $_test_names;
    }
    $selected = selectTests($names);
    return loadTests($_test_dir, $selected);
}