‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest:

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

HtmlCropper $subject
 

Detailed Description

Definition at line 25 of file HtmlCropperTest.php.

Member Function Documentation

◆ cropIsMultibyteSafe()

TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest::cropIsMultibyteSafe ( )

Definition at line 36 of file HtmlCropperTest.php.

◆ cropWorks()

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

◆ cropWorksDataProvicer()

static TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest::cropWorksDataProvicer ( )
static

Definition at line 47 of file HtmlCropperTest.php.

◆ handleCharset()

TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest::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 501 of file HtmlCropperTest.php.

References TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest\$subject.

Referenced by TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest\cropWorks().

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest::setUp ( )
protected

Definition at line 29 of file HtmlCropperTest.php.

Member Data Documentation

◆ $subject

HtmlCropper TYPO3\CMS\Core\Tests\Unit\Html\HtmlCropperTest::$subject
private