* * * @package harmoni.utilities.tests * * @copyright Copyright © 2005, Middlebury College * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) * * @version $Id: testList.php,v 1.4 2007/09/04 20:25:56 adamfranco Exp $ **/ if (!defined('HARMONI')) { require_once "../../harmoni.inc.php"; } if (!defined('SIMPLE_TEST')) { define('SIMPLE_TEST', HARMONI . 'simple_test/'); } require_once HARMONI . "errorHandler/ErrorHandler.class.php"; if (!Services::serviceAvailable("ErrorHandler")) { Services::registerService("ErrorHandler", "ErrorHandler"); require_once OKI2 . "osid/OsidContext.php"; $context = new OsidContext(); $context->assignContext('harmoni', $harmoni); require_once HARMONI . "oki2/shared/ConfigurationProperties.class.php"; $configuration = new ConfigurationProperties(); Services::startManagerAsService("ErrorHandler", $context, $configuration); } require_once SIMPLE_TEST . 'simple_unit.php'; require_once SIMPLE_TEST . 'dobo_simple_html_test.php'; $test = new GroupTest('Utilities tests'); $test->addTestFile(HARMONI . 'utilities/tests/OrderedListTestCase.class.php'); $test->attachObserver(new DoboTestHtmlDisplay()); $test->run();
/** * The constructor. * @access private * @return void **/ private function __construct() { $this->ActionHandler = new ActionHandler($this); // set up config options $this->config = new HarmoniConfig(); // set up request context / handler $this->request = new RequestContext(); // set up the history manager $this->history = new BrowseHistoryManager(); $this->_attachedData = new ReferencedFieldSet(); $this->_preExecActions = array(); $this->_postExecActions = array(); // Set up a default OutputHandler $osidContext = new OsidContext(); $osidContext->assignContext('harmoni', $this); $configuration = new BasicOutputHandlerConfigProperties(); $outputHandler = new BasicOutputHandler(); $outputHandler->assignOsidContext($osidContext); $outputHandler->assignConfiguration($configuration); $this->attachOutputHandler($outputHandler); }