Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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());
 }
Exemplo n.º 3
0
 /**
  * Returns the simulated view.
  *
  * @return Zend_View
  */
 protected function getView()
 {
     return $this->bootstrapper->getResource('view');
 }
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 /**
  * 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'));
 }