xref: /imagick/tests/github_174.phpt (revision 92408b5a)
1--TEST--
2Imagick::resizeImage prevent 0 width/height images
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7$i = new Imagick;
8$i->newPseudoImage(1, 1000, "xc:red");
9$i->resizeImage(0, 250, 0, 1);
10echo $i->getImageWidth(); // should be 1
11?>
12--EXPECTF--
131
14