‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Fixtures\GeneralUtilityFixture Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Fixtures\GeneralUtilityFixture:
TYPO3\CMS\Core\Utility\GeneralUtility

Static Public Member Functions

static setApplicationContext ($applicationContext)
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Utility\GeneralUtility
const SYSLOG_SEVERITY_INFO = 0
 
const SYSLOG_SEVERITY_NOTICE = 1
 
const SYSLOG_SEVERITY_WARNING = 2
 
const SYSLOG_SEVERITY_ERROR = 3
 
const SYSLOG_SEVERITY_FATAL = 4
 
const ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL = '.*'
 
const ENV_TRUSTED_HOSTS_PATTERN_SERVER_NAME = 'SERVER_NAME'
 
static if(empty($labels)) if(isset($defaultFormats[$labels])) else
 
if($base !==1000 && $base !==1024) $labelArr = explode('|', str_replace('"', '', $labels))
 
 $oldLocale = setlocale(LC_NUMERIC, 0)
 
 $newLocale = $GLOBALS['TSFE']->config['config']['locale_all'] ?? ''
 
if($newLocale) $localeInfo = localeconv()
 
if($newLocale) $sizeInBytes = max($sizeInBytes, 0)
 
 $multiplier = floor(($sizeInBytes ? log($sizeInBytes) : 0) / log($base))
 
 $sizeInUnits = $sizeInBytes / pow($base, $multiplier)
 
if($sizeInUnits >($base *.9)) $multiplier = min($multiplier, count($labelArr) - 1)
 
- ‪Static Protected Attributes inherited from ‪TYPO3\CMS\Core\Utility\GeneralUtility
static bool $allowHostHeaderValue = false
 

Detailed Description

Fixture for TYPO3\CMS\Core\Utility\GeneralUtility

Definition at line 20 of file GeneralUtilityFixture.php.

Member Function Documentation

◆ setApplicationContext()

static TYPO3\CMS\Frontend\Tests\Unit\ContentObject\Fixtures\GeneralUtilityFixture::setApplicationContext (   $applicationContext)
static
Parameters
\TYPO3\CMS\Core\Core\ApplicationContext$applicationContext

Definition at line 25 of file GeneralUtilityFixture.php.

Referenced by TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext().