public function testLoggerLogToErrorLogMethod() { $this->assertEquals('TESTLOGCONTENT', Logger::logToErrorLog('TESTLOGCONTENT')); }
/** * Initialize the SecureUPload UploadFolder * * Check that given `upload_folder` exist or not. If not throw a UploadPathException * Exception with 2 code. * * @param $initialize_upload_folder * * @throws UploadFolderException */ private function initUploadFolder($initialize_upload_folder) { $this->UploadFolder = new UploadFolder($this->SecureUPloadConfig); if ($this->UploadFolder->exist() === true) { if ($initialize_upload_folder) { $this->UploadFolder->init(); } } else { Logger::logToErrorLog('Upload folder dose\'nt exits. Path: ' . $this->SecureUPloadConfig->get('upload_folder')); throw new UploadFolderException(__NAMESPACE__ . ' Upload folder dose\'nt exits.', 2); } }