TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
StringUtilityTest Class Reference
Inheritance diagram for StringUtilityTest:
UnitTestCase BaseTestCase

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class

Definition at line 22 of file StringUtilityTest.php.

Member Function Documentation

beginsWithReturnsFalseForNotMatchingFirstPart (   $string,
  $part 
)
Test:
beginsWithReturnsFalseForNotMatchingFirstPartDataProvider

Definition at line 157 of file StringUtilityTest.php.

References StringUtility\beginsWith().

beginsWithReturnsFalseForNotMatchingFirstPartDataProvider ( )

Data provider for check beginsWithReturnsFalseForNotMatchingFirstPart

Returns
array

Definition at line 144 of file StringUtilityTest.php.

beginsWithReturnsInvalidArgumentDataProvider ( )

Data provider for beginsWithReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 167 of file StringUtilityTest.php.

beginsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part,
  $expectedException 
)
Test:
beginsWithReturnsInvalidArgumentDataProvider
Parameters
mixed$string
mixed$part
int$expectedException

Definition at line 196 of file StringUtilityTest.php.

References StringUtility\beginsWith().

beginsWithReturnsTrueForMatchingFirstPart (   $string,
  $part 
)
Test:
beginsWithReturnsTrueForMatchingFirstPartDataProvider

Definition at line 134 of file StringUtilityTest.php.

References StringUtility\beginsWith().

beginsWithReturnsTrueForMatchingFirstPartDataProvider ( )

Data provider for beginsWithReturnsTrueForMatchingFirstPart

Returns
array

Definition at line 118 of file StringUtilityTest.php.

endsWithReturnsFalseForNotMatchingLastPart (   $string,
  $part 
)
Test:
endsWithReturnsFalseForNotMatchingLastPartDataProvider

Definition at line 70 of file StringUtilityTest.php.

References StringUtility\endsWith().

endsWithReturnsFalseForNotMatchingLastPartDataProvider ( )

Data provider for check endsWithReturnsFalseForNotMatchingLastPart

Returns
array

Definition at line 55 of file StringUtilityTest.php.

endsWithReturnsThrowsExceptionWithInvalidArguments (   $string,
  $part,
  $expectedException 
)
Test:
endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider

Definition at line 105 of file StringUtilityTest.php.

References StringUtility\endsWith().

endsWithReturnsThrowsExceptionWithInvalidArgumentsDataProvider ( )

Data provider for endsWithReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 80 of file StringUtilityTest.php.

endsWithReturnsTrueForMatchingLastPart (   $string,
  $part 
)
Test:
endsWithReturnsTrueForMatchingLastPartDataProvider

Definition at line 45 of file StringUtilityTest.php.

References StringUtility\endsWith().

endsWithReturnsTrueForMatchingLastPartDataProvider ( )

Data provider for endsWithReturnsTrueForMatchingFirstPart

Returns
array

Definition at line 29 of file StringUtilityTest.php.

getUniqueIdReturnsIdWithoutDot ( )
Test:

Definition at line 216 of file StringUtilityTest.php.

References StringUtility\getUniqueId().

getUniqueIdReturnsIdWithPrefix ( )
Test:

Definition at line 207 of file StringUtilityTest.php.

References StringUtility\getUniqueId().