summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagepolygon_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/imagepolygon_basic.phpt')
-rw-r--r--ext/gd/tests/imagepolygon_basic.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/gd/tests/imagepolygon_basic.phpt b/ext/gd/tests/imagepolygon_basic.phpt
index 5c79cdf5be..19e54fa901 100644
--- a/ext/gd/tests/imagepolygon_basic.phpt
+++ b/ext/gd/tests/imagepolygon_basic.phpt
@@ -1,8 +1,8 @@
--TEST--
imageploygon()
--SKIPIF--
-<?php
- if (!function_exists('imagepolygon')) die('skip imagepolygon() not available');
+<?php
+ if (!function_exists('imagepolygon')) die('skip imagepolygon() not available');
require_once('skipif_imagetype.inc');
?>
--FILE--
@@ -11,7 +11,7 @@ imageploygon()
/* Prototype : bool imagepolygon ( resource $image , array $points , int $num_points , int $color )
* Description: Draws a polygon.
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -45,16 +45,16 @@ $col2 = imagecolorat($image, 100, 100);
$color1 = imagecolorsforindex($image, $col1);
$color2 = imagecolorsforindex($image, $col2);
var_dump($color1, $color2);
-
+
imagedestroy($image);
-echo "Done\n";
+echo "Done\n";
?>
--CLEAN--
<?php
$dest = dirname(realpath(__FILE__)) . '/imagepolygon.png';
@unlink($dest);
-?>
+?>
--EXPECT--
Simple test of imagepolygon() function
array(4) {