Ejemplo n.º 1
0
 public function setUp()
 {
     $this->initDatabaseAdapter();
     $this->sm = Bootstrap::getServiceManager();
     $this->sm->setAllowOverride(true);
     $this->sm->setService('INNN\\Entity\\Event', new \INNN\Entity\Event());
     $this->sm->setService('Zend\\Db\\Adapter\\Adapter', $this->dbAdapter);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->sm = Bootstrap::getServiceManager();
     $this->sm->setAllowOverride(true);
     $servicesToMock = array('Zend\\Db\\Adapter\\Adapter' => 'Zend\\Db\\Adapter\\Adapter', 'Core\\Service\\Tick' => 'Core\\Service\\Tick', 'logger' => 'Zend\\Log\\Logger', 'INNN\\Table\\EventTable' => 'INNN\\Table\\EventTable', 'INNN\\Table\\EventView' => 'INNN\\Table\\EventView', 'User\\Table\\UserTable' => 'User\\Table\\UserTable');
     foreach ($servicesToMock as $key => $serviceName) {
         $this->sm->setService($key, $this->getMockBuilder($serviceName)->disableOriginalConstructor()->getMock());
     }
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     $this->sm = Bootstrap::getServiceManager();
     #$this->sm->setAllowOverride(true);
 }