public function combinationsOfMaximumAndMinimumWidthAndHeightAreCalculatedCorrectly($width, $maximumWidth, $height, $maximumHeight, $expectedWidth, $expectedHeight, $ratioMode, $allowUpScaling)
{
$options = array('width' => $width, 'maximumWidth' => $maximumWidth, 'height' => $height, 'maximumHeight' => $maximumHeight, 'ratioMode' => $ratioMode, 'allowUpScaling' => $allowUpScaling);
/** @var ResizeImageAdjustment $adjustment */
$adjustment = $this->getAccessibleMock(ResizeImageAdjustment::class, array('dummy'), array($options));
$originalDimensions = new Box(400, 300);
$expectedDimensions = new Box($expectedWidth, $expectedHeight);
$this->assertEquals($expectedDimensions, $adjustment->_call('calculateDimensions', $originalDimensions));
}