summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-11-24 01:32:15 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-11-24 01:32:15 +0000
commitc7c7132a66c2192a1424aeffbfada28d1f863230 (patch)
tree68de537eec158d625ed1613783fb2ac021f13e26
parentef1d4e1dcf453e81990e141011f57902c2cea386 (diff)
downloadphp-git-c7c7132a66c2192a1424aeffbfada28d1f863230.tar.gz
Renamed the file because this is actually a test for gdImageStringFt().
-rw-r--r--ext/gd/tests/imagefttext.phpt (renamed from ext/gd/tests/imagettftext.phpt)11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/gd/tests/imagettftext.phpt b/ext/gd/tests/imagefttext.phpt
index 9704aae75b..ca62d60d43 100644
--- a/ext/gd/tests/imagettftext.phpt
+++ b/ext/gd/tests/imagefttext.phpt
@@ -1,12 +1,12 @@
--TEST--
-imagettftext() function test
+imagefttext() function test
--SKIPIF--
<?php
if (!extension_loaded('gd')) {
die("skip gd extension not avaliable.");
}
- if (!function_exists("imagettftext")) {
- die("skip imagettftext() not available.");
+ if (!function_exists("imagefttext")) {
+ die("skip imagefttext() not available.");
}
?>
--FILE--
@@ -22,7 +22,7 @@ imagettftext() function test
$colour_b = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, $sx - 1, $sy - 1, $colour_b);
- imagettftext($im, $sy * 0.75, 0, 0, $sy - 1, $colour_w, $fontfile, "A");
+ imagefttext($im, $sy * 0.75, 0, 0, $sy - 1, $colour_w, $fontfile, "A", array());
$cnt = 0;
for ($y = 0; $y < $sy; ++$y) {
@@ -43,11 +43,10 @@ imagettftext() function test
var_dump(testrun($im, $fontfile_8859));
imagedestroy($im);
-/* considered to be disabled for now as discussed in the QA list.
$im = imagecreatetruecolor(256, 256);
var_dump(testrun($im, $fontfile_8859));
imagedestroy($im);
-*/
?>
--EXPECT--
bool(true)
+bool(true)