summaryrefslogtreecommitdiff
path: root/ext/gd/tests/png2wbmp_error1-mb.phpt
diff options
context:
space:
mode:
authorFabien Villepinte <fabien.villepinte@gmail.com>2019-03-15 22:55:30 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-15 22:55:30 +0100
commit26dfce7f36d1c6f737ac241df1315a1b42b932c7 (patch)
tree570279b2f4d66a3de7f6ff7f7c865654ad04cea4 /ext/gd/tests/png2wbmp_error1-mb.phpt
parent63802a8446691869371bb37078d55b99cae7eb95 (diff)
downloadphp-git-26dfce7f36d1c6f737ac241df1315a1b42b932c7.tar.gz
Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/gd/tests/png2wbmp_error1-mb.phpt')
-rw-r--r--ext/gd/tests/png2wbmp_error1-mb.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/tests/png2wbmp_error1-mb.phpt b/ext/gd/tests/png2wbmp_error1-mb.phpt
index 8c779d36d9..ac0753fb6c 100644
--- a/ext/gd/tests/png2wbmp_error1-mb.phpt
+++ b/ext/gd/tests/png2wbmp_error1-mb.phpt
@@ -19,8 +19,8 @@ $im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
-$file = dirname(__FILE__) .'/simpletext私はガラスを食べられます.png';
-$file2 = dirname(__FILE__) .'/simpletext私はガラスを食べられます.wbmp';
+$file = __DIR__ .'/simpletext私はガラスを食べられます.png';
+$file2 = __DIR__ .'/simpletext私はガラスを食べられます.wbmp';
// Save the image as 'simpletext.png'
imagepng($im, $file);
@@ -41,6 +41,6 @@ Deprecated: Function png2wbmp() is deprecated in %s on line %d
Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d
--CLEAN--
<?php
-unlink(dirname(__FILE__) .'/simpletext私はガラスを食べられます.png');
-unlink(dirname(__FILE__) .'/simpletext私はガラスを食べられます.wbmp');
+unlink(__DIR__ .'/simpletext私はガラスを食べられます.png');
+unlink(__DIR__ .'/simpletext私はガラスを食べられます.wbmp');
?>