Skip to content

Commit cba1150

Browse files
marcelodrogeriopradoj
authored andcommitted
tests image gd
1 parent c4fb183 commit cba1150

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
test imagealphablending without arguments
3+
4+
--CREDITS--
5+
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
6+
‪#‎phpspMaisTestFest PHPSP on 2014-07-05
7+
8+
--SKIPIF--
9+
<?php
10+
if (!extension_loaded('gd')) die("skip gd extension not available.");
11+
?>
12+
13+
--FILE--
14+
<?php
15+
imagealphablending();
16+
?>
17+
18+
--EXPECTF--
19+
Warning: imagealphablending() expects exactly 2 parameters, 0 given in %s on line %d
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
test imagecolorresolvealpha without arguments
3+
4+
--CREDITS--
5+
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
6+
‪#‎phpspMaisTestFest PHPSP on 2014-07-05
7+
8+
--SKIPIF--
9+
<?php
10+
if (!extension_loaded('gd')) die("skip gd extension not available.");
11+
?>
12+
13+
--FILE--
14+
<?php
15+
imagecolorresolvealpha();
16+
?>
17+
18+
--EXPECTF--
19+
Warning: imagecolorresolvealpha() expects exactly 5 parameters, 0 given in %s on line %d
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
test imagesavealpha without arguments
3+
4+
--CREDITS--
5+
Marcelo Diniz <marcelo.leo27 [at] gmail [dot] com
6+
‪#‎phpspMaisTestFest PHPSP on 2014-07-05
7+
8+
--SKIPIF--
9+
<?php
10+
if (!extension_loaded('gd')) die("skip gd extension not available.");
11+
?>
12+
13+
--FILE--
14+
<?php
15+
imagesavealpha();
16+
?>
17+
18+
--EXPECTF--
19+
Warning: imagesavealpha() expects exactly 2 parameters, 0 given in %s on line %d

0 commit comments

Comments
 (0)