Esempio n. 1
0
 function setup()
 {
     $ini_file = realpath(dirname(__FILE__) . '/../tests.ini');
     if (!file_exists($ini_file)) {
         trigger_error("Missing configuration file {$ini_file}", E_USER_ERROR);
     }
     $config = parse_ini_file($ini_file);
     foreach ($config as $key => $value) {
         define($key, $value);
     }
     TestManager::_installSimpleTest();
     list($version) = file(SIMPLE_TEST . 'VERSION');
     $version = trim($version);
     if (!version_compare('1.0.1alpha', $version, '<')) {
         echo "At least SimpleTest Version 1.0.1alpha is required.";
         echo " Yours is {$version}\n";
         exit;
     }
 }
Esempio n. 2
0
 function _installSimpleTest()
 {
     parent::_installSimpleTest();
     vendor('simpletest' . DS . 'remote');
 }