예제 #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);
 }
예제 #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());
 }
예제 #3
0
 /**
  * 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;
 }
예제 #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);
 }
예제 #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 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;
 }