diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-11-23 17:21:33 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-11-23 17:21:33 +0000 |
commit | 5ece0ecdfb1ded54020d6c9cae3581ae380550a3 (patch) | |
tree | 42a3e8b73b3605274ee3457409e0cd0830f526a5 /ext/gd | |
parent | 9b9ae8ee7082cf405642b5726600c37148875d57 (diff) | |
download | php-git-5ece0ecdfb1ded54020d6c9cae3581ae380550a3.tar.gz |
Test was fixed.
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/tests/imagefilter.phpt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/gd/tests/imagefilter.phpt b/ext/gd/tests/imagefilter.phpt index 3b97657a0d..57f5e5412f 100644 --- a/ext/gd/tests/imagefilter.phpt +++ b/ext/gd/tests/imagefilter.phpt @@ -27,9 +27,9 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png"; foreach ($no_arg_filters as $filt) { $im = imagecreatefrompng($SOURCE_IMG); if (imagefilter($im, constant($filt))) { - imagepng($im, $SAVE_DIR. $filt. ".png"); + imagepng($im, $SAVE_DIR."/".$filt. ".png"); echo "$filt success\n"; - @unlink($SAVE_DIR. $filt. ".png"); + @unlink($SAVE_DIR."/".$filt. ".png"); } else { echo "$filt failed\n"; } @@ -38,9 +38,9 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png"; $im = imagecreatefrompng($SOURCE_IMG); if (imagefilter($im, IMG_FILTER_SMOOTH, -1924.124)) { - imagepng($im, $SAVE_DIR . "IMG_FILTER_SMOOTH.png"); + imagepng($im, $SAVE_DIR . "/IMG_FILTER_SMOOTH.png"); echo "IMG_FILTER_SMOOTH success\n"; - @unlink($SAVE_DIR . "IMG_FILTER_SMOOTH.png"); + @unlink($SAVE_DIR . "/IMG_FILTER_SMOOTH.png"); } else { echo "IMG_FILTER_SMOOTH failed\n"; } @@ -48,9 +48,9 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png"; $im = imagecreatefrompng($SOURCE_IMG); if (imagefilter($im, IMG_FILTER_COLORIZE, -127.12, -127.98, 127)) { - imagepng($im, $SAVE_DIR . "IMG_FILTER_COLORIZE.png"); + imagepng($im, $SAVE_DIR . "/IMG_FILTER_COLORIZE.png"); echo "IMG_FILTER_COLORIZE success\n"; - unlink($SAVE_DIR . "IMG_FILTER_COLORIZE.png"); + unlink($SAVE_DIR . "/IMG_FILTER_COLORIZE.png"); } else { echo "IMG_FILTER_COLORIZE failed\n"; } @@ -58,9 +58,9 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png"; $im = imagecreatefrompng($SOURCE_IMG); if (imagefilter($im, IMG_FILTER_CONTRAST, -90)) { - imagepng($im, $SAVE_DIR . "IMG_FILTER_CONTRAST.png"); + imagepng($im, $SAVE_DIR . "/IMG_FILTER_CONTRAST.png"); echo "IMG_FILTER_CONTRAST success\n"; - unlink($SAVE_DIR . "IMG_FILTER_CONTRAST.png"); + unlink($SAVE_DIR . "/IMG_FILTER_CONTRAST.png"); } else { echo "IMG_FILTER_CONTRAST failed\n"; } @@ -68,9 +68,9 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png"; $im = imagecreatefrompng($SOURCE_IMG); if (imagefilter($im, IMG_FILTER_BRIGHTNESS, 98)) { - imagepng($im, $SAVE_DIR . "IMG_FILTER_BRIGHTNESS.png"); + imagepng($im, $SAVE_DIR . "/IMG_FILTER_BRIGHTNESS.png"); echo "IMG_FILTER_BRIGHTNESS success\n"; - unlink($SAVE_DIR . "IMG_FILTER_BRIGHTNESS.png"); + unlink($SAVE_DIR . "/IMG_FILTER_BRIGHTNESS.png"); } else { echo "IMG_FILTER_BRIGHTNESS failed\n"; } |