/** * 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()); }
/** * Returns the simulated view. * * @return Zend_View */ protected function getView() { return $this->bootstrapper->getResource('view'); }
/** * 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 simulated layout action helper. * * @return Zend_Layout_Controller_Action_Helper_Layout */ protected function createLayoutHelper() { return new Zend_Layout_Controller_Action_Helper_Layout($this->bootstrapper->getResource('layout')); }