‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest:

Public Member Functions

static calcOffsetWithSingleIntegerReturnsTheGivenIntegerAsString (string $number)
 
 calcOffsetWithMultipleIntegersReturnsTheGivenIntegerCommaSeparated ()
 
 calcOffsetTrimsWhitespaceAroundProvidedNumbers ()
 
static calcOffsetRoundsNumbersToNearestInteger (string $input, string $expectedResult)
 
static calcOffsetDoesTheProvidedCalculation (string $input, string $expectedResult)
 

Static Public Attributes

static array< string, function singleIntegerDataProvider():array { return['positive integer'=> ['1']
 
static array< string, function roundingDataProvider():array { return['rounding down'=> ['1.1', '1']
 
static array< string, function calculationDataProvider():array { return['addition of positive numbers'=> ['1+1', '2']
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 

Private Attributes

GifBuilder $subject
 

Detailed Description

Definition at line 25 of file GifBuilderTest.php.

Member Function Documentation

◆ calcOffsetDoesTheProvidedCalculation()

static TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::calcOffsetDoesTheProvidedCalculation ( string  $input,
string  $expectedResult 
)

Definition at line 115 of file GifBuilderTest.php.

◆ calcOffsetRoundsNumbersToNearestInteger()

static TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::calcOffsetRoundsNumbersToNearestInteger ( string  $input,
string  $expectedResult 
)

Definition at line 89 of file GifBuilderTest.php.

◆ calcOffsetTrimsWhitespaceAroundProvidedNumbers()

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::calcOffsetTrimsWhitespaceAroundProvidedNumbers ( )

Definition at line 69 of file GifBuilderTest.php.

◆ calcOffsetWithMultipleIntegersReturnsTheGivenIntegerCommaSeparated()

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::calcOffsetWithMultipleIntegersReturnsTheGivenIntegerCommaSeparated ( )

Definition at line 60 of file GifBuilderTest.php.

◆ calcOffsetWithSingleIntegerReturnsTheGivenIntegerAsString()

static TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::calcOffsetWithSingleIntegerReturnsTheGivenIntegerAsString ( string  $number)

Definition at line 52 of file GifBuilderTest.php.

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::setUp ( )
protected

Definition at line 31 of file GifBuilderTest.php.

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::$resetSingletonInstances = true
protected

Definition at line 27 of file GifBuilderTest.php.

◆ $subject

GifBuilder TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::$subject
private

Definition at line 29 of file GifBuilderTest.php.

◆ array< string, function calculationDataProvider():array { return['addition of positive numbers'=>

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::array< string, function calculationDataProvider():array { return[ 'addition of positive numbers'=>[ '1+1', '2']
static
Returns
‪array<string, array{0: non-empty-string, 1: non-empty-string}>

Definition at line 99 of file GifBuilderTest.php.

◆ array< string, function roundingDataProvider():array { return['rounding down'=>

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::array< string, function roundingDataProvider():array { return[ 'rounding down'=>[ '1.1', '1']
static
Returns
‪array<string, array{0: non-empty-string, 1: non-empty-string}>

Definition at line 79 of file GifBuilderTest.php.

◆ array< string, function singleIntegerDataProvider():array { return['positive integer'=>

TYPO3\CMS\Frontend\Tests\Unit\Imaging\GifBuilderTest::array< string, function singleIntegerDataProvider():array { return[ 'positive integer'=>[ '1']
static
Returns
‪array<string, array{0: non-empty-string}>

Definition at line 41 of file GifBuilderTest.php.