summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imageinterlace_error1.phpt
blob: 5c871e7bba21901d3f1199e07812cad41837753f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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