public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     Module::registerModule(new UnitTestExceptionModule());
     Module::initialiseModules();
     Log::clearLogs();
     Log::attachLog(self::$log = new UnitTestLog(Log::ERROR_LEVEL));
     ExceptionHandler::enableExceptionTrapping();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->application = new Application();
     $this->application->registerModule(new UnitTestingModule());
     $this->application->registerModule(new UnitTestExceptionModule());
     $this->application->initialiseModules();
     Log::clearLogs();
     Log::attachLog(self::$log = new UnitTestLog(Log::ERROR_LEVEL));
     ExceptionHandler::enableExceptionTrapping();
 }
 protected function setUp()
 {
     parent::setUp();
     Log::clearLogs();
     Log::attachLog($this->log = new UnitTestIndentedMessageLog(Log::DEBUG_LEVEL));
 }
Exemple #4
0
 protected function setUp()
 {
     parent::setUp();
     Log::clearLogs();
     Log::attachLog($this->log = new UnitTestLog(Log::ERROR_LEVEL));
 }