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)); }
protected function setUp() { parent::setUp(); Log::clearLogs(); Log::attachLog($this->log = new UnitTestLog(Log::ERROR_LEVEL)); }