Annotation of embedaddon/php/ext/gd/tests/imageantialias_error1.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing wrong parameter resource in imageantialias() of GD library
        !             3: --CREDITS--
        !             4: Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
        !             5: #testfest PHPSP on 2009-06-20
        !             6: --SKIPIF--
        !             7: <?php 
        !             8: if (!extension_loaded("gd")) die("skip GD not present");
        !             9: if (!GD_BUNDLED) die("skip requires bundled GD library\n");
        !            10: ?>
        !            11: --FILE--
        !            12: <?php
        !            13: $image = tmpfile();
        !            14: 
        !            15: var_dump(imageantialias($image, true));
        !            16: ?>
        !            17: --EXPECTF--
        !            18: Warning: imageantialias(): supplied resource is not a valid Image resource in %s on line %d
        !            19: bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>