Skip to content

Commit a375d54

Browse files
committed
Migrate skip checks to --EXTENSIONS-- for ext/gd
Cf. PR #6787. Closes GH-6994.
1 parent a0c44fb commit a375d54

File tree

274 files changed

+549
-812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+549
-812
lines changed

ext/gd/tests/001-mb.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
imagecreatefrompng() and empty/missing file
3+
--EXTENSIONS--
4+
gd
35
--SKIPIF--
46
<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?>
57
--FILE--

ext/gd/tests/001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
imagecreatefrompng() and empty/missing file
3+
--EXTENSIONS--
4+
gd
35
--SKIPIF--
46
<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?>
57
--FILE--

ext/gd/tests/bug19366.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #19366 (gdimagefill() function crashes (fixed in bundled libgd))
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) die("skip gd extension not available\n");
6-
?>
3+
--EXTENSIONS--
4+
gd
75
--FILE--
86
<?php
97
echo "Alive: create image\n";

ext/gd/tests/bug22544-mb.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
--TEST--
22
Bug #22544 (TrueColor transparency in PNG images).
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) {
6-
die("skip gd extension not available\n");
7-
}
8-
?>
3+
--EXTENSIONS--
4+
gd
95
--FILE--
106
<?php
117
$image = imageCreateTruecolor(640, 100);

ext/gd/tests/bug22544.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
--TEST--
22
Bug #22544 (TrueColor transparency in PNG images).
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) {
6-
die("skip gd extension not available\n");
7-
}
8-
?>
3+
--EXTENSIONS--
4+
gd
95
--FILE--
106
<?php
117
$image = imageCreateTruecolor(640, 100);

ext/gd/tests/bug24155.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
--TEST--
22
Bug #24155 (gdImageRotate270 rotation problem).
3+
--EXTENSIONS--
4+
gd
35
--SKIPIF--
46
<?php
5-
if (!extension_loaded('gd')) {
6-
die("skip gd extension not available\n");
7-
}
87
if (!function_exists("imagerotate")) die("skip requires bundled GD library\n");
98
?>
109
--FILE--

ext/gd/tests/bug24594.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
--TEST--
22
Bug #24594 (Filling an area using tiles).
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) {
6-
die("skip gd extension not available\n");
7-
}
8-
?>
3+
--EXTENSIONS--
4+
gd
95
--FILE--
106
<?php
117
$tile = imagecreate(36,36);

ext/gd/tests/bug27582_1.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #27582 (ImageFillToBorder() on alphablending image looses alpha on fill color)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) die("skip gd extension not available\n");
6-
?>
3+
--EXTENSIONS--
4+
gd
75
--FILE--
86
<?php
97
$dest = dirname(realpath(__FILE__)) . '/bug27582.png';

ext/gd/tests/bug28147.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #28147 (Crash with anti-aliased line)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) die("skip gd extension not available\n");
6-
?>
3+
--EXTENSIONS--
4+
gd
75
--FILE--
86
<?php
97
//

ext/gd/tests/bug36697-mb.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
--TEST--
22
Bug #36697 (TrueColor transparency with GIF palette output).
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('gd')) {
6-
die("skip gd extension not available\n");
7-
}
8-
?>
3+
--EXTENSIONS--
4+
gd
95
--FILE--
106
<?php
117
$dest = __DIR__ . "/36697私はガラスを食べられます.gif";

0 commit comments

Comments
 (0)