mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Merge branch 'pull-request/782' into PHP-5.5
* pull-request/782: tests image gd
This commit is contained in:
commit
711a3ab9d1
19
tests/marcelod/imagealphablending_error1.phpt
Normal file
19
tests/marcelod/imagealphablending_error1.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
test imagealphablending without arguments
|
||||
|
||||
--CREDITS--
|
||||
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
|
||||
#phpspMaisTestFest PHPSP on 2014-07-05
|
||||
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('gd')) die("skip gd extension not available.");
|
||||
?>
|
||||
|
||||
--FILE--
|
||||
<?php
|
||||
imagealphablending();
|
||||
?>
|
||||
|
||||
--EXPECTF--
|
||||
Warning: imagealphablending() expects exactly 2 parameters, 0 given in %s on line %d
|
19
tests/marcelod/imagecolorresolvealpha_error3.phpt
Normal file
19
tests/marcelod/imagecolorresolvealpha_error3.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
test imagecolorresolvealpha without arguments
|
||||
|
||||
--CREDITS--
|
||||
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
|
||||
#phpspMaisTestFest PHPSP on 2014-07-05
|
||||
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('gd')) die("skip gd extension not available.");
|
||||
?>
|
||||
|
||||
--FILE--
|
||||
<?php
|
||||
imagecolorresolvealpha();
|
||||
?>
|
||||
|
||||
--EXPECTF--
|
||||
Warning: imagecolorresolvealpha() expects exactly 5 parameters, 0 given in %s on line %d
|
19
tests/marcelod/imagesavealpha_error2.phpt
Normal file
19
tests/marcelod/imagesavealpha_error2.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
test imagesavealpha without arguments
|
||||
|
||||
--CREDITS--
|
||||
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
|
||||
#phpspMaisTestFest PHPSP on 2014-07-05
|
||||
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('gd')) die("skip gd extension not available.");
|
||||
?>
|
||||
|
||||
--FILE--
|
||||
<?php
|
||||
imagesavealpha();
|
||||
?>
|
||||
|
||||
--EXPECTF--
|
||||
Warning: imagesavealpha() expects exactly 2 parameters, 0 given in %s on line %d
|
Loading…
Reference in New Issue
Block a user