summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagecopyresampled_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/imagecopyresampled_basic.phpt')
-rw-r--r--ext/gd/tests/imagecopyresampled_basic.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/gd/tests/imagecopyresampled_basic.phpt b/ext/gd/tests/imagecopyresampled_basic.phpt
index fd96ab6928..bd816f1fec 100644
--- a/ext/gd/tests/imagecopyresampled_basic.phpt
+++ b/ext/gd/tests/imagecopyresampled_basic.phpt
@@ -1,8 +1,8 @@
--TEST--
imagecopyresampled()
--SKIPIF--
-<?php
- if (!function_exists('imagecopyresampled')) die('skip imagecopyresampled() not available');
+<?php
+ if (!function_exists('imagecopyresampled')) die('skip imagecopyresampled() not available');
if (!(imagetype() & IMG_PNG)) die('skip PNG Support is not enabled');
?>
--FILE--
@@ -11,7 +11,7 @@ imagecopyresampled()
/* Prototype : bool imagecopyresampled ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h )
* Description: Copy and resize part of an image with resampling.
* Source code: ext/standard/image.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple test of imagecopyresampled() function\n";
@@ -22,7 +22,7 @@ $dest_sml = dirname(realpath(__FILE__)) . '/imagesmall.png';
// create a blank image
$image_lge = imagecreatetruecolor(400, 300);
-// set the background color to black
+// set the background color to black
$bg = imagecolorallocate($image_lge, 0, 0, 0);
// fill polygon with blue
@@ -51,14 +51,14 @@ imagepng($image_sml, $dest_sml);
list($width, $height) = getimagesize($dest_sml);
echo "Size of copy: width=". $width . " height=" . $height . "\n";
-imagedestroy($image_lge);
+imagedestroy($image_lge);
imagedestroy($image_sml);
-
-echo "Done\n";
+
+echo "Done\n";
?>
--CLEAN--
-<?php
+<?php
$dest_lge = dirname(realpath(__FILE__)) . '/imagelarge.png';
$dest_sml = dirname(realpath(__FILE__)) . '/imagesmall.png';
@unlink($dest_lge);