Skip to content

tests image gd #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/marcelod/imagealphablending_error1.phpt
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions tests/marcelod/imagecolorresolvealpha_error3.phpt
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions tests/marcelod/imagesavealpha_error2.phpt
Original file line number Diff line number Diff line change
@@ -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