‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest:

Public Member Functions

bool isConnected ()
 
static cmpIPv4ReturnsTrueForMatchingAddress (string $ip, string $list)
 
static cmpIPv4ReturnsFalseForNotMatchingAddress (string $ip, string $list)
 
static cmpIPv6ReturnsTrueForMatchingAddress (string $ip, string $list)
 
static cmpIPv6ReturnsFalseForNotMatchingAddress (string $ip, string $list)
 
static normalizeIPv6CorrectlyNormalizesAddresses (string $compressed, string $normalized)
 
static validIpReturnsTrueForValidIp (string $ip)
 
static validIpReturnsFalseForInvalidIp (string $ip)
 
static cmpFqdnReturnsTrue (string $baseHost, string $list)
 
static cmpFqdnReturnsFalse (string $baseHost, string $list)
 
 inListForItemContainedReturnsTrue (string $haystack)
 
 inListForItemNotContainedReturnsFalse (string $haystack)
 
 expandListExpandsIntegerRanges (string $list, string $expectation)
 
 expandListExpandsForTwoThousandElementsExpandsOnlyToThousandElementsMaximum ()
 
 formatSizeTranslatesBytesToHigherOrderRepresentation ($size, $labels, $base, $expected)
 
 splitCalcCorrectlySplitsExpression (array $expected, string $expression)
 
static validEmailReturnsTrueForValidMailAddress (string $address)
 
static validEmailReturnsFalseForInvalidMailAddress (string $address)
 
 intExplodeReturnsExplodedArray (string $input, bool $removeEmpty, array $expected)
 
 implodeArrayForUrlBuildsValidParameterString ($name, $input, $expected)
 
 implodeArrayForUrlCanSkipEmptyParameters ()
 
 implodeArrayForUrlCanUrlEncodeKeyNames ()
 
 explodeUrl2ArrayTransformsParameterStringToFlatArray (string $input, array $expected)
 
 revExplodeCorrectlyExplodesStringForGivenPartsCount ($delimiter, $testString, $count, $expectedArray)
 
 revExplodeRespectsLimitThreeWhenExploding ()
 
 trimExplodeReturnsCorrectResult (string $delimiter, string $testString, bool $removeEmpty, int $limit, array $expectedResult)
 
 getBytesFromSizeMeasurementCalculatesCorrectByteValue ($expected, $byteString)
 
 getIndpEnvTypo3SitePathReturnNonEmptyString ()
 
 getIndpEnvTypo3SitePathReturnsStringEndingWithSlash ()
 
 getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAddresses ($httpHost, $expectedIp)
 
 getIndpEnvTypo3PortParsesHostnamesAndIpAddresses ($httpHost, $dummy, $expectedPort)
 
 underscoredToUpperCamelCase ($expected, $inputString)
 
 underscoredToLowerCamelCase ($expected, $inputString)
 
 camelCaseToLowerCaseUnderscored ($expected, $inputString)
 

Static Public Member Functions

static inListForItemContainedReturnsTrueDataProvider ()
 
static inListForItemNotContainedReturnsFalseDataProvider ()
 
static expandListExpandsIntegerRangesDataProvider ()
 
static formatSizeDataProvider ()
 
static array splitCalcDataProvider ()
 
static intExplodeDataProvider ()
 
static implodeArrayForUrlDataProvider ()
 
static explodeUrl2ArrayTransformsParameterStringToFlatArrayDataProvider ()
 
static revExplodeDataProvider ()
 
static trimExplodeReturnsCorrectResultDataProvider ()
 
static array getBytesFromSizeMeasurementDataProvider ()
 
static hostnameAndPortDataProvider ()
 
static array underscoredToUpperCamelCaseDataProvider ()
 
static array underscoredToLowerCamelCaseDataProvider ()
 
static array camelCaseToLowerCaseUnderscoredDataProvider ()
 

Public Attributes

const NO_FIX_PERMISSIONS_ON_WINDOWS = 'fixPermissions() not available on Windows (method does nothing)'
 

Static Public Attributes

static array< string, function cmpIPv4DataProviderMatching():array { return['host with full IP address'=> ['127.0.0.1', '127.0.0.1']
 
static array< string, function cmpIPv4DataProviderNotMatching():array { return['single host'=> ['127.0.0.1', '127.0.0.2']
 
static array< string, function cmpIPv6DataProviderMatching():array { return['empty address'=> ['::', '::']
 
static array< string, function cmpIPv6DataProviderNotMatching():array { return['empty against localhost'=> ['::', '::1']
 
static array< string, function normalizeCompressIPv6DataProviderCorrect():array { return['empty'=> ['::', '0000:0000:0000:0000:0000:0000:0000:0000']
 
static array< string, function validIpDataProvider():array { return['0.0.0.0'=> ['0.0.0.0']
 
static array< string, function invalidIpDataProvider():array { return['zero string'=> ['0']
 
static array< string, function cmpFqdnValidDataProvider():array { return['localhost should usually resolve, IPv4'=> ['127.0.0.1', ' *']
 
static array< string, function cmpFqdnInvalidDataProvider():array { return['num-parts of hostname to check can only be less or equal than hostname, 1'=> ['aaa.bbb.ccc.ddd.eee', 'aaa.bbb.ccc.ddd.eee.fff']
 
static array< string, function validEmailValidDataProvider():array { return['short mail address'=> ['a @b.c']
 
static array< string, function validEmailInvalidDataProvider():array { return['empty string'=> ['']
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getTestDirectory (string $prefix='root_')
 

Protected Attributes

bool $resetSingletonInstances = true
 
bool $backupEnvironment = true
 
PackageManager $backupPackageManager
 

Detailed Description

Definition at line 44 of file GeneralUtilityTest.php.

Member Function Documentation

◆ camelCaseToLowerCaseUnderscored()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::camelCaseToLowerCaseUnderscored (   $expected,
  $inputString 
)
Test:
‪@dataProvider camelCaseToLowerCaseUnderscoredDataProvider

Definition at line 1179 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\camelCaseToLowerCaseUnderscored().

◆ camelCaseToLowerCaseUnderscoredDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::camelCaseToLowerCaseUnderscoredDataProvider ( )
static

Data provider for camelCaseToLowerCaseUnderscored

Returns
‪array expected, input string

Definition at line 1165 of file GeneralUtilityTest.php.

◆ cmpFqdnReturnsFalse()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpFqdnReturnsFalse ( string  $baseHost,
string  $list 
)
Test:
‪@dataProvider cmpFqdnInvalidDataProvider

Definition at line 344 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpFQDN().

◆ cmpFqdnReturnsTrue()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpFqdnReturnsTrue ( string  $baseHost,
string  $list 
)
Test:
‪@dataProvider cmpFqdnValidDataProvider

Definition at line 322 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpFQDN().

◆ cmpIPv4ReturnsFalseForNotMatchingAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpIPv4ReturnsFalseForNotMatchingAddress ( string  $ip,
string  $list 
)
Test:
‪@dataProvider cmpIPv4DataProviderNotMatching

Definition at line 146 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIPv4().

◆ cmpIPv4ReturnsTrueForMatchingAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpIPv4ReturnsTrueForMatchingAddress ( string  $ip,
string  $list 
)
Test:
‪@dataProvider cmpIPv4DataProviderMatching

Definition at line 120 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIPv4().

◆ cmpIPv6ReturnsFalseForNotMatchingAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpIPv6ReturnsFalseForNotMatchingAddress ( string  $ip,
string  $list 
)
Test:
‪@dataProvider cmpIPv6DataProviderNotMatching

Definition at line 207 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIPv6().

◆ cmpIPv6ReturnsTrueForMatchingAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::cmpIPv6ReturnsTrueForMatchingAddress ( string  $ip,
string  $list 
)
Test:
‪@dataProvider cmpIPv6DataProviderMatching

Definition at line 179 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIPv6().

◆ expandListExpandsForTwoThousandElementsExpandsOnlyToThousandElementsMaximum()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::expandListExpandsForTwoThousandElementsExpandsOnlyToThousandElementsMaximum ( )

◆ expandListExpandsIntegerRanges()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::expandListExpandsIntegerRanges ( string  $list,
string  $expectation 
)
Test:
‪@dataProvider expandListExpandsIntegerRangesDataProvider

Definition at line 402 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\expandList().

◆ expandListExpandsIntegerRangesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::expandListExpandsIntegerRangesDataProvider ( )
static

Data provider for expandListExpandsIntegerRangesDataProvider

Definition at line 410 of file GeneralUtilityTest.php.

◆ explodeUrl2ArrayTransformsParameterStringToFlatArray()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::explodeUrl2ArrayTransformsParameterStringToFlatArray ( string  $input,
array  $expected 
)
Test:
‪@dataProvider explodeUrl2ArrayTransformsParameterStringToFlatArrayDataProvider

Definition at line 707 of file GeneralUtilityTest.php.

◆ explodeUrl2ArrayTransformsParameterStringToFlatArrayDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::explodeUrl2ArrayTransformsParameterStringToFlatArrayDataProvider ( )
static

Definition at line 690 of file GeneralUtilityTest.php.

◆ formatSizeDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::formatSizeDataProvider ( )
static

Data provider for formatSizeTranslatesBytesToHigherOrderRepresentation

Definition at line 449 of file GeneralUtilityTest.php.

◆ formatSizeTranslatesBytesToHigherOrderRepresentation()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::formatSizeTranslatesBytesToHigherOrderRepresentation (   $size,
  $labels,
  $base,
  $expected 
)
Test:
‪@dataProvider formatSizeDataProvider

Definition at line 441 of file GeneralUtilityTest.php.

◆ getBytesFromSizeMeasurementCalculatesCorrectByteValue()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getBytesFromSizeMeasurementCalculatesCorrectByteValue (   $expected,
  $byteString 
)
Test:
‪@dataProvider getBytesFromSizeMeasurementDataProvider

Definition at line 1048 of file GeneralUtilityTest.php.

◆ getBytesFromSizeMeasurementDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getBytesFromSizeMeasurementDataProvider ( )
static

Data provider for getBytesFromSizeMeasurement

Returns
‪array expected value, input string

Definition at line 1035 of file GeneralUtilityTest.php.

◆ getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAddresses()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getIndpEnvTypo3HostOnlyParsesHostnamesAndIpAddresses (   $httpHost,
  $expectedIp 
)
Test:
‪@dataProvider hostnameAndPortDataProvider

Definition at line 1091 of file GeneralUtilityTest.php.

◆ getIndpEnvTypo3PortParsesHostnamesAndIpAddresses()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getIndpEnvTypo3PortParsesHostnamesAndIpAddresses (   $httpHost,
  $dummy,
  $expectedPort 
)
Test:
‪@dataProvider hostnameAndPortDataProvider

Definition at line 1101 of file GeneralUtilityTest.php.

◆ getIndpEnvTypo3SitePathReturnNonEmptyString()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getIndpEnvTypo3SitePathReturnNonEmptyString ( )
Test:

Definition at line 1059 of file GeneralUtilityTest.php.

◆ getIndpEnvTypo3SitePathReturnsStringEndingWithSlash()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getIndpEnvTypo3SitePathReturnsStringEndingWithSlash ( )
Test:

Definition at line 1067 of file GeneralUtilityTest.php.

◆ getTestDirectory()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::getTestDirectory ( string  $prefix = 'root_')
protected

Helper method to create a random directory and return the path. The path will be registered for deletion upon test ending

Definition at line 90 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), TYPO3\CMS\Core\Core\Environment\getVarPath(), and TYPO3\CMS\Core\Utility\GeneralUtility\mkdir_deep().

◆ hostnameAndPortDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::hostnameAndPortDataProvider ( )
static

Definition at line 1073 of file GeneralUtilityTest.php.

◆ implodeArrayForUrlBuildsValidParameterString()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::implodeArrayForUrlBuildsValidParameterString (   $name,
  $input,
  $expected 
)
Test:
‪@dataProvider implodeArrayForUrlDataProvider

Definition at line 665 of file GeneralUtilityTest.php.

◆ implodeArrayForUrlCanSkipEmptyParameters()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::implodeArrayForUrlCanSkipEmptyParameters ( )
Test:

Definition at line 673 of file GeneralUtilityTest.php.

◆ implodeArrayForUrlCanUrlEncodeKeyNames()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::implodeArrayForUrlCanUrlEncodeKeyNames ( )
Test:

Definition at line 683 of file GeneralUtilityTest.php.

◆ implodeArrayForUrlDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::implodeArrayForUrlDataProvider ( )
static

Data provider for implodeArrayForUrlBuildsValidParameterString

Definition at line 650 of file GeneralUtilityTest.php.

◆ inListForItemContainedReturnsTrue()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::inListForItemContainedReturnsTrue ( string  $haystack)
Test:
‪@dataProvider inListForItemContainedReturnsTrueDataProvider

Definition at line 356 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList().

◆ inListForItemContainedReturnsTrueDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::inListForItemContainedReturnsTrueDataProvider ( )
static

Data provider for inListForItemContainedReturnsTrue.

Definition at line 364 of file GeneralUtilityTest.php.

◆ inListForItemNotContainedReturnsFalse()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::inListForItemNotContainedReturnsFalse ( string  $haystack)
Test:
‪@dataProvider inListForItemNotContainedReturnsFalseDataProvider

Definition at line 378 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList().

◆ inListForItemNotContainedReturnsFalseDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::inListForItemNotContainedReturnsFalseDataProvider ( )
static

Data provider for inListForItemNotContainedReturnsFalse.

Definition at line 386 of file GeneralUtilityTest.php.

◆ intExplodeDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::intExplodeDataProvider ( )
static

Definition at line 609 of file GeneralUtilityTest.php.

◆ intExplodeReturnsExplodedArray()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::intExplodeReturnsExplodedArray ( string  $input,
bool  $removeEmpty,
array  $expected 
)
Test:
‪@dataProvider intExplodeDataProvider

Definition at line 639 of file GeneralUtilityTest.php.

◆ isConnected()

bool TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::isConnected ( )

Helper method to test for an existing internet connection. Some tests are skipped if there is no working uplink.

Returns
‪bool $isConnected

Definition at line 75 of file GeneralUtilityTest.php.

◆ normalizeIPv6CorrectlyNormalizesAddresses()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::normalizeIPv6CorrectlyNormalizesAddresses ( string  $compressed,
string  $normalized 
)
Test:
‪@dataProvider normalizeCompressIPv6DataProviderCorrect

Definition at line 236 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\normalizeIPv6().

◆ revExplodeCorrectlyExplodesStringForGivenPartsCount()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::revExplodeCorrectlyExplodesStringForGivenPartsCount (   $delimiter,
  $testString,
  $count,
  $expectedArray 
)
Test:
‪@dataProvider revExplodeDataProvider

Definition at line 782 of file GeneralUtilityTest.php.

◆ revExplodeDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::revExplodeDataProvider ( )
static

Definition at line 712 of file GeneralUtilityTest.php.

◆ revExplodeRespectsLimitThreeWhenExploding()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::revExplodeRespectsLimitThreeWhenExploding ( )
Test:

Definition at line 791 of file GeneralUtilityTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::setUp ( )
protected

◆ splitCalcCorrectlySplitsExpression()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::splitCalcCorrectlySplitsExpression ( array  $expected,
string  $expression 
)
Test:
‪@dataProvider splitCalcDataProvider

Definition at line 518 of file GeneralUtilityTest.php.

◆ splitCalcDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::splitCalcDataProvider ( )
static

Data provider for splitCalc

Returns
‪array expected values, arithmetic expression

Definition at line 496 of file GeneralUtilityTest.php.

◆ tearDown()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::tearDown ( )
protected

◆ trimExplodeReturnsCorrectResult()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::trimExplodeReturnsCorrectResult ( string  $delimiter,
string  $testString,
bool  $removeEmpty,
int  $limit,
array  $expectedResult 
)
Test:
‪@dataProvider trimExplodeReturnsCorrectResultDataProvider

Definition at line 806 of file GeneralUtilityTest.php.

◆ trimExplodeReturnsCorrectResultDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::trimExplodeReturnsCorrectResultDataProvider ( )
static

Definition at line 811 of file GeneralUtilityTest.php.

◆ underscoredToLowerCamelCase()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::underscoredToLowerCamelCase (   $expected,
  $inputString 
)
Test:
‪@dataProvider underscoredToLowerCamelCaseDataProvider

Definition at line 1152 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\underscoredToLowerCamelCase().

◆ underscoredToLowerCamelCaseDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::underscoredToLowerCamelCaseDataProvider ( )
static

Data provider for underscoredToLowerCamelCase

Returns
‪array expected, input string

Definition at line 1140 of file GeneralUtilityTest.php.

◆ underscoredToUpperCamelCase()

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::underscoredToUpperCamelCase (   $expected,
  $inputString 
)
Test:
‪@dataProvider underscoredToUpperCamelCaseDataProvider

Definition at line 1127 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\underscoredToUpperCamelCase().

◆ underscoredToUpperCamelCaseDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::underscoredToUpperCamelCaseDataProvider ( )
static

Data provider for underscoredToUpperCamelCase

Returns
‪array expected, input string

Definition at line 1115 of file GeneralUtilityTest.php.

◆ validEmailReturnsFalseForInvalidMailAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::validEmailReturnsFalseForInvalidMailAddress ( string  $address)
Test:
‪@dataProvider validEmailInvalidDataProvider

Definition at line 600 of file GeneralUtilityTest.php.

◆ validEmailReturnsTrueForValidMailAddress()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::validEmailReturnsTrueForValidMailAddress ( string  $address)
Test:
‪@dataProvider validEmailValidDataProvider

Definition at line 557 of file GeneralUtilityTest.php.

◆ validIpReturnsFalseForInvalidIp()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::validIpReturnsFalseForInvalidIp ( string  $ip)
Test:
‪@dataProvider invalidIpDataProvider

Definition at line 289 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\validIP().

◆ validIpReturnsTrueForValidIp()

static TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::validIpReturnsTrueForValidIp ( string  $ip)
Test:
‪@dataProvider validIpDataProvider

Definition at line 263 of file GeneralUtilityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\validIP().

Member Data Documentation

◆ $backupEnvironment

bool TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::$backupEnvironment = true
protected

Definition at line 50 of file GeneralUtilityTest.php.

◆ $backupPackageManager

PackageManager TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::$backupPackageManager
protected

Definition at line 52 of file GeneralUtilityTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::$resetSingletonInstances = true
protected

Definition at line 48 of file GeneralUtilityTest.php.

◆ array< string, function cmpFqdnInvalidDataProvider():array { return['num-parts of hostname to check can only be less or equal than hostname, 1'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpFqdnInvalidDataProvider():array { return[ 'num-parts of hostname to check can only be less or equal than hostname, 1'=>[ 'aaa.bbb.ccc.ddd.eee', 'aaa.bbb.ccc.ddd.eee.fff']
static

Data provider for cmpFqdnReturnsFalse

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 332 of file GeneralUtilityTest.php.

◆ array< string, function cmpFqdnValidDataProvider():array { return['localhost should usually resolve, IPv4'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpFqdnValidDataProvider():array { return[ 'localhost should usually resolve, IPv4'=>[ '127.0.0.1', ' *']
static

Data provider for cmpFqdnReturnsTrue

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 302 of file GeneralUtilityTest.php.

◆ array< string, function cmpIPv4DataProviderMatching():array { return['host with full IP address'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpIPv4DataProviderMatching():array { return[ 'host with full IP address'=>[ '127.0.0.1', '127.0.0.1']
static
Returns
‪array<string, array{0: string, 1: string}>

Definition at line 101 of file GeneralUtilityTest.php.

◆ array< string, function cmpIPv4DataProviderNotMatching():array { return['single host'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpIPv4DataProviderNotMatching():array { return[ 'single host'=>[ '127.0.0.1', '127.0.0.2']
static

Data provider for cmpIPv4ReturnsFalseForNotMatchingAddress

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 130 of file GeneralUtilityTest.php.

◆ array< string, function cmpIPv6DataProviderMatching():array { return['empty address'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpIPv6DataProviderMatching():array { return[ 'empty address'=>['::', '::']
static

Data provider for cmpIPv6ReturnsTrueForMatchingAddress

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 159 of file GeneralUtilityTest.php.

◆ array< string, function cmpIPv6DataProviderNotMatching():array { return['empty against localhost'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function cmpIPv6DataProviderNotMatching():array { return[ 'empty against localhost'=>['::', '::1']
static

Data provider for cmpIPv6ReturnsFalseForNotMatchingAddress

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 189 of file GeneralUtilityTest.php.

◆ array< string, function invalidIpDataProvider():array { return['zero string'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function invalidIpDataProvider():array { return[ 'zero string'=>[ '0']
static

Data provider for checkValidIpReturnsFalseForInvalidIp

Returns
‪array<string, array{0: string}>

Definition at line 273 of file GeneralUtilityTest.php.

◆ array< string, function normalizeCompressIPv6DataProviderCorrect():array { return['empty'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function normalizeCompressIPv6DataProviderCorrect():array { return[ 'empty'=>['::', '0000:0000:0000:0000:0000:0000:0000:0000']
static

Data provider for normalizeIPv6ReturnsCorrectlyNormalizedFormat

Returns
‪array<string, array{0: string, 1: string}>

Definition at line 220 of file GeneralUtilityTest.php.

◆ array< string, function validEmailInvalidDataProvider():array { return['empty string'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function validEmailInvalidDataProvider():array { return[ 'empty string'=>['']
static

Data provider for invalid validEmail's

Returns
‪array<string, array{0: string}>

Definition at line 567 of file GeneralUtilityTest.php.

◆ array< string, function validEmailValidDataProvider():array { return['short mail address'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function validEmailValidDataProvider():array { return[ 'short mail address'=>[ 'a @b.c']
static

Data provider for valid validEmail's

Returns
‪array<string, array{0: string}>

Definition at line 531 of file GeneralUtilityTest.php.

◆ array< string, function validIpDataProvider():array { return['0.0.0.0'=>

TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::array< string, function validIpDataProvider():array { return[ '0.0.0.0'=>[ '0.0.0.0']
static

Data provider for checkValidIpReturnsTrueForValidIp

Returns
‪array<string, array{0: string}>

Definition at line 249 of file GeneralUtilityTest.php.

◆ NO_FIX_PERMISSIONS_ON_WINDOWS

const TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest::NO_FIX_PERMISSIONS_ON_WINDOWS = 'fixPermissions() not available on Windows (method does nothing)'

Definition at line 46 of file GeneralUtilityTest.php.