/** * See {@link PHPUnit_Framework_TestCase::setUp()} for details. */ protected function setUp() { parent::setUp(); $this->bootstrapper = Mol_Test_Bootstrap::create(); $this->resource = new Mol_Application_Resource_Form(); $this->resource->setBootstrap($this->bootstrapper); }
/** * See {@link PHPUnit_Framework_TestCase::setUp()} for details. */ protected function setUp() { parent::setUp(); $this->bootstrapper = new Mol_Application_Bootstrap(Mol_Test_Bootstrap::create()); $this->bootstrapper->setPluginLoader($this->createPluginLoader()); }
/** * Creates a bootstrapper for testing. * * @return Mol_Test_Bootstrap */ protected function createBootstrapper() { $bootstrapper = Mol_Test_Bootstrap::create(); $bootstrapper->simulateResource('view', new Zend_View()); return $bootstrapper; }
/** * See {@link PHPUnit_Framework_TestCase::setUp()} for details. */ protected function setUp() { parent::setUp(); $this->bootstrapper = Mol_Test_Bootstrap::create(); $this->injector = new Mol_Application_Bootstrap_Injector($this->bootstrapper); }
/** * Creates a new bootstrapper for testing. * * @return Mol_Test_Bootstrap */ protected function createBootstrapper() { $bootstrapper = Mol_Test_Bootstrap::create(); $this->assertInstanceOf('Mol_Test_Bootstrap', $bootstrapper); return $bootstrapper; }
/** * Creates a bootstrapper and simulates some resources for testing. * * @return Mol_Test_Bootstrap */ protected function createBootstrapper() { $bootstrapper = Mol_Test_Bootstrap::create(); $bootstrapper->simulateResource('nullResource', null); $bootstrapper->simulateResource('objectResource', new stdClass()); return $bootstrapper; }
/** * Creates a bootstrapper for testing. * * @return Mol_Test_Bootstrap */ protected function createBootstrapper() { return Mol_Test_Bootstrap::create(); }
/** * Creates the bootstrapper that will be injected into the controller. * * @return Mol_Test_Bootstrap */ protected function createBootstrapper() { $bootstrapper = Mol_Test_Bootstrap::create(); $this->injectResources($bootstrapper); return $bootstrapper; }