ImboUnitTest\EventListener\ImageVariationsTest::testCanGetTheMinWidthFromASetOfTransformations PHP Method

testCanGetTheMinWidthFromASetOfTransformations() public method

public testCanGetTheMinWidthFromASetOfTransformations ( $width, $height, array $transformations, $maxWidth )
$transformations array
    public function testCanGetTheMinWidthFromASetOfTransformations($width, $height, array $transformations, $maxWidth)
    {
        $calculatedMax = $this->listener->getMaxWidth($width, $height, $transformations);
        $this->assertSame(is_null($maxWidth) ? null : array_map('intval', $maxWidth), is_null($calculatedMax) ? null : array_map('intval', $calculatedMax), 'Could not figure out the minimum width');
    }