‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest:

Public Member Functions

 fromCropScaleValuesTest (int $incomingWidth, int $incomingHeight, string $width, string $height, array $options, bool $allowUpscaling, ImageProcessingInstructions $expected)
 

Public Attributes

 $result
 
 yield
 

Static Public Attributes

static iterable< function fromCropScaleValuesImageDataProvider():iterable { $result=new ImageProcessingInstructions(width:150, height:120,);yield 'Get image scale for a width of 150px'=> [170, 136, '150', '', [], true, $result,]
 

Detailed Description

Definition at line 26 of file ImageProcessingInstructionsTest.php.

Member Function Documentation

◆ fromCropScaleValuesTest()

TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest::fromCropScaleValuesTest ( int  $incomingWidth,
int  $incomingHeight,
string  $width,
string  $height,
array  $options,
bool  $allowUpscaling,
ImageProcessingInstructions  $expected 
)
Parameters
int<0,max>‪$incomingWidth
int<0,max>‪$incomingHeight

Definition at line 271 of file ImageProcessingInstructionsTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest\$result.

Member Data Documentation

◆ $result

TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest::$result
Initial value:
= new ImageProcessingInstructions(
width: 100,
height: 80,
)

Definition at line 50 of file ImageProcessingInstructionsTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest\fromCropScaleValuesTest().

◆ iterable< function fromCropScaleValuesImageDataProvider():iterable { $result=new ImageProcessingInstructions(width:150, height:120,);yield 'Get image scale for a width of 150px'=>

TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest::iterable< function fromCropScaleValuesImageDataProvider():iterable { $result=new ImageProcessingInstructions( width:150, height:120,); yield 'Get image scale for a width of 150px'=>[ 170, 136, '150', '',[], true, $result,]
static
Returns
‪iterable< string, array{int<0, max>, int<0, max>, string, string, array, bool, ImageProcessingInstructions} >

Definition at line 34 of file ImageProcessingInstructionsTest.php.

◆ yield

TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest::yield
Initial value:
=> [
170,
136,
'',
'',
['maxW' => 100],
true,
]

Definition at line 54 of file ImageProcessingInstructionsTest.php.

‪TYPO3\CMS\Core\Tests\Unit\Imaging\ImageProcessingInstructionsTest\$result
‪$result
Definition: ImageProcessingInstructionsTest.php:50