summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug48732.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/bug48732.phpt')
-rw-r--r--ext/gd/tests/bug48732.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/tests/bug48732.phpt b/ext/gd/tests/bug48732.phpt
index 5e77e06103..b2be6a47f1 100644
--- a/ext/gd/tests/bug48732.phpt
+++ b/ext/gd/tests/bug48732.phpt
@@ -7,7 +7,7 @@ Bug #48732 (TTF Bounding box wrong for letters below baseline)
?>
--FILE--
<?php
-$cwd = dirname(__FILE__);
+$cwd = __DIR__;
$font = "$cwd/Tuffy.ttf";
$g = imagecreate(100, 50);
$bgnd = imagecolorallocate($g, 255, 255, 255);
@@ -17,6 +17,6 @@ imagepng($g, "$cwd/bug48732.png");
echo 'Left Bottom: (' . $bbox[0] . ', ' . $bbox[1] . ')';
?>
--CLEAN--
-<?php @unlink(dirname(__FILE__) . '/bug48732.png'); ?>
+<?php @unlink(__DIR__ . '/bug48732.png'); ?>
--EXPECT--
Left Bottom: (0, 46)