Documentation is available at ModuleFactory.php
- <?php
- /**
- * Test the Module Factory
- *
- * This file is part of CompInaBox.
- * @package Tests
- * @subpackage InputControllers
- * @author Eric D. Nielsen <nielsene@alum.mit.edu>
- * @copyright CompInaBox Copyright 2005, Eric D. Nielsen. All Rights Reserved.
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- */
- /** Load the to be tested class */
- (COMPINABOX.'include/classes/controllers/ModuleFactory.inc');
- /**
- * TestModuleFactory
- * @package Tests
- * @subpackage InputControllers
- */
- class TestTestModuleFactory extends UnitTestCase {
- var $factory;
- function TestModuleFactory() {
- $this->UnitTestCase('TestModuleFactory');
- }
- function setUp() {
- $this->factory =& new ModuleFactory("SlidingDoorsAdmin");
- }
- function tearDown() {
- }
- function testCreateController() {
- $controller = $this->factory->createController();
- $this->assertIsA($controller, "SlidingDoorsAdminController");
- }
- function testCreateContext() {
- $con = $this->factory->createContext();
- $this->assertIsA($con, "SlidingDoorsAdminContext");
- }
- function testCreateRequest() {
- $req = $this->factory->createRequest();
- $this->assertIsA($req, "SlidingDoorsAdminRequest");
- }
- function testCreatePreHandlers() {
- $handlers = $this->factory->createPreHandlers();
- $this->assertIsA($handlers, "SlidingDoorsAdminHandlerChain");
- }
- }
- ?>
Documentation generated on Tue, 25 Apr 2006 13:05:07 -0400 by phpDocumentor 1.3.0RC3