TYPO3 CMS  TYPO3_6-2
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)
 

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, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for class

Author
Susanne Moog typo3.nosp@m.@sus.nosp@m.anne-.nosp@m.moog.nosp@m..de

Definition at line 22 of file StringUtilityTest.php.

Member Function Documentation

◆ isLastPartOfStringReturnsFalseForNotMatchingFirstPart()

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

Definition at line 64 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 53 of file StringUtilityTest.php.

◆ isLastPartOfStringReturnsInvalidArgumentDataProvider()

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

Data provider for isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments

Returns
array

Definition at line 73 of file StringUtilityTest.php.

◆ isLastPartOfStringReturnsThrowsExceptionWithInvalidArguments()

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

Definition at line 98 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 44 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.