php-src/ext/gd/tests/imageinterlace_error1.phpt
2009-07-01 00:56:01 +00:00

21 lines
475 B
PHP
Executable File

--TEST--
Testing passing no parameters to imageinterlace() of GD library
--CREDITS--
Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
$image = imagecreatetruecolor(100, 100);
//calling with no parameters
var_dump(imageinterlace());
?>
--EXPECTF--
Warning: imageinterlace() expects at least 1 parameter, 0 given in %s on line %d
NULL