‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest:

Public Member Functions

array endsWithReturnsTrueForMatchingLastPartDataProvider ()
 
 endsWithReturnsTrueForMatchingLastPart ($string, $part)
 
array endsWithReturnsFalseForNotMatchingLastPartDataProvider ()
 
 endsWithReturnsFalseForNotMatchingLastPart ($string, $part)
 
array endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider ()
 
 endsWithReturnsThrowsExceptionWithInvalidArguments ($string, $part, $expectedException)
 
array beginsWithReturnsTrueForMatchingFirstPartDataProvider ()
 
 beginsWithReturnsTrueForMatchingFirstPart ($string, $part)
 
array beginsWithReturnsFalseForNotMatchingFirstPartDataProvider ()
 
 beginsWithReturnsFalseForNotMatchingFirstPart ($string, $part)
 
array beginsWithReturnsInvalidArgumentDataProvider ()
 
 beginsWithReturnsThrowsExceptionWithInvalidArguments ($string, $part, int $expectedException)
 

Detailed Description

Testcase for class \TYPO3\CMS\Core\Utility\StringUtility

Definition at line 26 of file StringUtilityTest.php.

Member Function Documentation

◆ beginsWithReturnsFalseForNotMatchingFirstPart()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsFalseForNotMatchingFirstPart (   $string,
  $part 
)
Test:
‪@dataProvider beginsWithReturnsFalseForNotMatchingFirstPartDataProvider

Definition at line 161 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\beginsWith().

◆ beginsWithReturnsFalseForNotMatchingFirstPartDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsFalseForNotMatchingFirstPartDataProvider ( )

Data provider for check beginsWithReturnsFalseForNotMatchingFirstPart

Returns
‪array

Definition at line 148 of file StringUtilityTest.php.

◆ beginsWithReturnsInvalidArgumentDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsInvalidArgumentDataProvider ( )

Data provider for beginsWithReturnsThrowsExceptionWithInvalidArguments

Returns
‪array

Definition at line 171 of file StringUtilityTest.php.

◆ beginsWithReturnsThrowsExceptionWithInvalidArguments()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part,
int  $expectedException 
)
Test:
‪@dataProvider beginsWithReturnsInvalidArgumentDataProvider
Parameters
mixed$string
mixed$part
int$expectedException

Definition at line 200 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\beginsWith().

◆ beginsWithReturnsTrueForMatchingFirstPart()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsTrueForMatchingFirstPart (   $string,
  $part 
)
Test:
‪@dataProvider beginsWithReturnsTrueForMatchingFirstPartDataProvider

Definition at line 138 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\beginsWith().

◆ beginsWithReturnsTrueForMatchingFirstPartDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::beginsWithReturnsTrueForMatchingFirstPartDataProvider ( )

Data provider for beginsWithReturnsTrueForMatchingFirstPart

Returns
‪array

Definition at line 122 of file StringUtilityTest.php.

◆ endsWithReturnsFalseForNotMatchingLastPart()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsFalseForNotMatchingLastPart (   $string,
  $part 
)
Test:
‪@dataProvider endsWithReturnsFalseForNotMatchingLastPartDataProvider

Definition at line 74 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\endsWith().

◆ endsWithReturnsFalseForNotMatchingLastPartDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsFalseForNotMatchingLastPartDataProvider ( )

Data provider for check endsWithReturnsFalseForNotMatchingLastPart

Returns
‪array

Definition at line 59 of file StringUtilityTest.php.

◆ endsWithReturnsThrowsExceptionWithInvalidArguments()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part,
  $expectedException 
)
Test:
‪@dataProvider endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider

Definition at line 109 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\endsWith().

◆ endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider ( )

Data provider for endsWithReturnsThrowsExceptionWithInvalidArguments

Returns
‪array

Definition at line 84 of file StringUtilityTest.php.

◆ endsWithReturnsTrueForMatchingLastPart()

TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsTrueForMatchingLastPart (   $string,
  $part 
)
Test:
‪@dataProvider endsWithReturnsTrueForMatchingLastPartDataProvider

Definition at line 49 of file StringUtilityTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\endsWith().

◆ endsWithReturnsTrueForMatchingLastPartDataProvider()

array TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\StringUtilityTest::endsWithReturnsTrueForMatchingLastPartDataProvider ( )

Data provider for endsWithReturnsTrueForMatchingFirstPart

Returns
‪array

Definition at line 33 of file StringUtilityTest.php.