‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest:

Public Member Functions

 cropIsMultibyteSafe ()
 
 cropWorks (string $expected, string $content, int $numberOfChars, string $replacementForEllipsis, bool $cropToSpace)
 

Static Public Member Functions

static cropWorksDataProvicer ()
 

Protected Member Functions

 setUp ()
 
 handleCharset (string &$subject, string &$expected)
 

Private Attributes

TextCropper $subject
 

Detailed Description

Definition at line 25 of file TextCropperTest.php.

Member Function Documentation

◆ cropIsMultibyteSafe()

TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::cropIsMultibyteSafe ( )

Definition at line 36 of file TextCropperTest.php.

◆ cropWorks()

TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::cropWorks ( string  $expected,
string  $content,
int  $numberOfChars,
string  $replacementForEllipsis,
bool  $cropToSpace 
)

◆ cropWorksDataProvicer()

static TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::cropWorksDataProvicer ( )
static

Definition at line 47 of file TextCropperTest.php.

◆ handleCharset()

TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::handleCharset ( string &  $subject,
string &  $expected 
)
protected

Converts the subject and the expected result into utf-8.

Parameters
string$subject‪the subject, will be modified
string$expected‪the expected result, will be modified

Definition at line 135 of file TextCropperTest.php.

References TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest\$subject.

Referenced by TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest\cropWorks().

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::setUp ( )
protected

Definition at line 29 of file TextCropperTest.php.

Member Data Documentation

◆ $subject

TextCropper TYPO3\CMS\Core\Tests\Unit\Text\TextCropperTest::$subject
private