Annotation of embedaddon/php/ext/gd/tests/imagefilltoborder_error5.phpt, revision 1.1.1.1

1.1       misho       1: --TEST-- 
                      2: Testing wrong param passing imagefilltoborder() of GD library 
                      3: --CREDITS-- 
                      4: Ivan Rosolen <contato [at] ivanrosolen [dot] com> 
                      5: #testfest PHPSP on 2009-06-30
                      6: --SKIPIF-- 
                      7: <?php  
                      8: if (!extension_loaded("gd")) die("skip GD not present"); 
                      9: ?> 
                     10: --FILE--
                     11: <?php
                     12: // Create a image 
                     13: $image = imagecreatetruecolor( 100, 100 ); 
                     14: 
                     15: // Draw a rectangle
                     16: imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
                     17: 
                     18: // Draw an ellipse to fill with a black border
                     19: imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
                     20: 
                     21: // Try to fill border
                     22: imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), 'wrong param' );
                     23: 
                     24: ?> 
                     25: --EXPECTF--
                     26: Warning: imagefilltoborder() expects parameter 5 to be long, %s given in %s on line %d

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