public static function initialize() { if (self::$singleton !== null) { yTest_error("yTest_CallsRouter singleton already initialized"); } self::$singleton = new yTest_CallsRouter(); }
function yTest_init($yTestConfigPath, $yTestLibPath, $phpUnitLibPath) { require_once $yTestConfigPath; global $yTest_yTestLibPath; $yTest_yTestLibPath = $yTestLibPath; require $yTest_yTestLibPath . '/yTest_Functions.php'; global $yTest_phpUnitLibPath; $yTest_phpUnitLibPath = $phpUnitLibPath; // [RS] If __autoload() has been defined correctly this should work. yTest_CallsRouter::initialize(); }