ImboUnitTest\Image\Transformation\CropTest::getInvalidImageParams PHP Method

getInvalidImageParams() public method

Fetch different invalid image parameters
public getInvalidImageParams ( ) : array[]
return array[]
    public function getInvalidImageParams()
    {
        return ['Dont throw if width/height are within bounds (no coords)' => [['width' => 100, 'height' => 100], 200, 200, false], 'Dont throw if coords are within bounds' => [['width' => 100, 'height' => 100, 'x' => 100, 'y' => 100], 200, 200, false], 'Throw if width is out of bounds' => [['width' => 300, 'height' => 100], 200, 200, '#image width#i'], 'Throw if height is out of bounds' => [['width' => 100, 'height' => 300], 200, 200, '#image height#i'], 'Throw if X is out of bounds' => [['width' => 100, 'height' => 100, 'x' => 500], 200, 200, '#image width#i'], 'Throw if Y is out of bounds' => [['width' => 100, 'height' => 100, 'y' => 500], 200, 200, '#image height#i'], 'Throw if X + width is out of bounds' => [['width' => 100, 'height' => 100, 'x' => 105], 200, 200, '#image width#i'], 'Throw if Y + height is out of bounds' => [['width' => 100, 'height' => 100, 'y' => 105], 200, 200, '#image height#i']];
    }