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

1.1     ! misho       1: --TEST--
        !             2: imagecreatefromgd2
        !             3: --SKIPIF--
        !             4: <?php
        !             5:         if (!function_exists('imagecreatefromgd2')) die("skip gd extension not available\n");
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: $file = dirname(__FILE__) . '/src.gd2';
        !            10: 
        !            11: $im2 = imagecreatefromgd2($file);
        !            12: echo 'test create from gd2: ';
        !            13: echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
        !            14: echo "\n";
        !            15: 
        !            16: $im3 = imagecreatefromgd2part($file, 4,4, 2,2);
        !            17: echo 'test create from gd2 part: ';
        !            18: echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
        !            19: echo "\n";
        !            20: ?>
        !            21: --EXPECT--
        !            22: test create from gd2: ok
        !            23: test create from gd2 part: ok

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