TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 isLastPartOfStringReturnsTrueForMatchingFirstPartDataProvider ()
 
 isLastPartOfStringReturnsTrueForMatchingFirstPart ($string, $part)
 
 isLastPartOfStringReturnsFalseForNotMatchingFirstPartDataProvider ()
 
 isLastPartOfStringReturnsFalseForNotMatchingFirstPart ($string, $part)
 
 isLastPartOfStringReturnsInvalidArgumentDataProvider ()
 
 isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments ($string, $part)
 
 endsWithReturnsTrueForMatchingLastPartDataProvider ()
 
 endsWithReturnsTrueForMatchingLastPart ($string, $part)
 
 endsWithReturnsFalseForNotMatchingLastPartDataProvider ()
 
 endsWithReturnsFalseForNotMatchingLastPart ($string, $part)
 
 endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider ()
 
 endsWithReturnsThrowsExceptionWithInvalidArguments ($string, $part)
 
 beginsWithReturnsTrueForMatchingFirstPartDataProvider ()
 
 beginsWithReturnsTrueForMatchingFirstPart ($string, $part)
 
 beginsWithReturnsFalseForNotMatchingFirstPartDataProvider ()
 
 beginsWithReturnsFalseForNotMatchingFirstPart ($string, $part)
 
 beginsWithReturnsInvalidArgumentDataProvider ()
 
 beginsWithReturnsThrowsExceptionWithInvalidArguments ($string, $part)
 
 getUniqueIdReturnsIdWithPrefix ()
 
 getUniqueIdReturnsIdWithoutDot ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class

Definition at line 22 of file StringUtilityTest.php.

Member Function Documentation

◆ beginsWithReturnsFalseForNotMatchingFirstPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsFalseForNotMatchingFirstPart (   $string,
  $part 
)
Test:
beginsWithReturnsFalseForNotMatchingFirstPartDataProvider

Definition at line 239 of file StringUtilityTest.php.

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

◆ beginsWithReturnsFalseForNotMatchingFirstPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsFalseForNotMatchingFirstPartDataProvider ( )

Data provider for check beginsWithReturnsFalseForNotMatchingFirstPart

Returns
array

Definition at line 226 of file StringUtilityTest.php.

◆ beginsWithReturnsInvalidArgumentDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsInvalidArgumentDataProvider ( )

Data provider for beginsWithReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 249 of file StringUtilityTest.php.

◆ beginsWithReturnsThrowsExceptionWithInvalidArguments()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part 
)
Test:
beginsWithReturnsInvalidArgumentDataProvider

Definition at line 275 of file StringUtilityTest.php.

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

◆ beginsWithReturnsTrueForMatchingFirstPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsTrueForMatchingFirstPart (   $string,
  $part 
)
Test:
beginsWithReturnsTrueForMatchingFirstPartDataProvider

Definition at line 216 of file StringUtilityTest.php.

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

◆ beginsWithReturnsTrueForMatchingFirstPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::beginsWithReturnsTrueForMatchingFirstPartDataProvider ( )

Data provider for beginsWithReturnsTrueForMatchingFirstPart

Returns
array

Definition at line 200 of file StringUtilityTest.php.

◆ endsWithReturnsFalseForNotMatchingLastPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsFalseForNotMatchingLastPart (   $string,
  $part 
)
Test:
endsWithReturnsFalseForNotMatchingLastPartDataProvider

Definition at line 154 of file StringUtilityTest.php.

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

◆ endsWithReturnsFalseForNotMatchingLastPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsFalseForNotMatchingLastPartDataProvider ( )

Data provider for check endsWithReturnsFalseForNotMatchingLastPart

Returns
array

Definition at line 139 of file StringUtilityTest.php.

◆ endsWithReturnsThrowsExceptionWithInvalidArguments()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part 
)
Test:
endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider

Definition at line 190 of file StringUtilityTest.php.

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

◆ endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider ( )

Data provider for endsWithReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 164 of file StringUtilityTest.php.

◆ endsWithReturnsTrueForMatchingLastPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsTrueForMatchingLastPart (   $string,
  $part 
)
Test:
endsWithReturnsTrueForMatchingLastPartDataProvider

Definition at line 129 of file StringUtilityTest.php.

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

◆ endsWithReturnsTrueForMatchingLastPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::endsWithReturnsTrueForMatchingLastPartDataProvider ( )

Data provider for endsWithReturnsTrueForMatchingFirstPart

Returns
array

Definition at line 113 of file StringUtilityTest.php.

◆ getUniqueIdReturnsIdWithoutDot()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::getUniqueIdReturnsIdWithoutDot ( )

◆ getUniqueIdReturnsIdWithPrefix()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::getUniqueIdReturnsIdWithPrefix ( )

◆ isLastPartOfStringReturnsFalseForNotMatchingFirstPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsFalseForNotMatchingFirstPart (   $string,
  $part 
)
Test:
isLastPartOfStringReturnsFalseForNotMatchingFirstPartDataProvider

Definition at line 67 of file StringUtilityTest.php.

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

◆ isLastPartOfStringReturnsFalseForNotMatchingFirstPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsFalseForNotMatchingFirstPartDataProvider ( )

Data provider for checkisLastPartOfStringReturnsFalseForNotMatchingFirstParts

Returns
array

Definition at line 55 of file StringUtilityTest.php.

◆ isLastPartOfStringReturnsInvalidArgumentDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsInvalidArgumentDataProvider ( )

Data provider for isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 77 of file StringUtilityTest.php.

◆ isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part 
)
Test:
isLastPartOfStringReturnsInvalidArgumentDataProvider

Definition at line 103 of file StringUtilityTest.php.

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

◆ isLastPartOfStringReturnsTrueForMatchingFirstPart()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsTrueForMatchingFirstPart (   $string,
  $part 
)
Test:
isLastPartOfStringReturnsTrueForMatchingFirstPartDataProvider

Definition at line 45 of file StringUtilityTest.php.

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

◆ isLastPartOfStringReturnsTrueForMatchingFirstPartDataProvider()

TYPO3\CMS\Core\Tests\Unit\Utility\StringUtilityTest::isLastPartOfStringReturnsTrueForMatchingFirstPartDataProvider ( )

Data provider for isLastPartOfStrReturnsTrueForMatchingLastParts

Returns
array

Definition at line 29 of file StringUtilityTest.php.