Example #1
0
 /**
  * @group listener
  */
 public function testBeforeStartModuleWithVoltSuccess()
 {
     $folder = 'tests/module/Application/compiled';
     chmod($folder, 0777);
     $config = (require './tests/config/config.result.php');
     $module = 'Application';
     $mockDi = new Di($config);
     $mockApp = $this->getMockBuilder(PhalconApp::class)->disableOriginalConstructor()->getMock();
     $mockApp->expects($this->once())->method('getDI')->will($this->returnValue($mockDi));
     $mockEvent = $this->getMockBuilder(Event::class)->disableOriginalConstructor()->getMock();
     $appListen = new ListenApp();
     $appListen->beforeStartModule($mockEvent, $mockApp, $module);
 }