PHP Class Neos\Media\Tests\Unit\Domain\Model\Adjustment\ResizeImageAdjustmentTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
显示文件 Open project: neos/neos-development-collection

Public Methods

Method Description
combinationsOfMaximumAndMinimumWidthAndHeightAreCalculatedCorrectly ( $width, $maximumWidth, $height, $maximumHeight, $expectedWidth, $expectedHeight, $ratioMode, $allowUpScaling )
ifHeightIsSetWidthIsDeterminedByTheOriginalAspectRatio ( )
ifWidthIsSetHeightIsDeterminedByTheOriginalAspectRatio ( )
minimumAndMaximumDimensions ( ) : array Data provider for the test below
minimumHeightIsGreaterZero ( )
minimumWidthIsGreaterZero ( )
widthAndHeightDeterminedByExplicitlySetWidthAndHeightWithInsetMode ( )
widthAndHeightDeterminedByExplicitlySetWidthAndHeightWithOutboundMode ( )

Method Details

combinationsOfMaximumAndMinimumWidthAndHeightAreCalculatedCorrectly() public method

public combinationsOfMaximumAndMinimumWidthAndHeightAreCalculatedCorrectly ( $width, $maximumWidth, $height, $maximumHeight, $expectedWidth, $expectedHeight, $ratioMode, $allowUpScaling )

ifHeightIsSetWidthIsDeterminedByTheOriginalAspectRatio() public method

ifWidthIsSetHeightIsDeterminedByTheOriginalAspectRatio() public method

minimumAndMaximumDimensions() public method

Data provider for the test below

minimumHeightIsGreaterZero() public method

minimumWidthIsGreaterZero() public method

widthAndHeightDeterminedByExplicitlySetWidthAndHeightWithInsetMode() public method

widthAndHeightDeterminedByExplicitlySetWidthAndHeightWithOutboundMode() public method