summaryrefslogtreecommitdiff
path: root/ext/xml/tests
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/xml/tests
parent63802a8446691869371bb37078d55b99cae7eb95 (diff)
downloadphp-git-26dfce7f36d1c6f737ac241df1315a1b42b932c7.tar.gz
Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/xml/tests')
-rw-r--r--ext/xml/tests/xml001.phpt2
-rw-r--r--ext/xml/tests/xml002.phpt2
-rw-r--r--ext/xml/tests/xml003.phpt2
-rw-r--r--ext/xml/tests/xml004.phpt2
-rw-r--r--ext/xml/tests/xml_closures_001.phpt2
5 files changed, 5 insertions, 5 deletions
diff --git a/ext/xml/tests/xml001.phpt b/ext/xml/tests/xml001.phpt
index 6d22e5526f..e859a4bbcb 100644
--- a/ext/xml/tests/xml001.phpt
+++ b/ext/xml/tests/xml001.phpt
@@ -7,7 +7,7 @@ XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX p
?>
--FILE--
<?php
-chdir(dirname(__FILE__));
+chdir(__DIR__);
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 1);
diff --git a/ext/xml/tests/xml002.phpt b/ext/xml/tests/xml002.phpt
index f56319932e..e183fa4ae3 100644
--- a/ext/xml/tests/xml002.phpt
+++ b/ext/xml/tests/xml002.phpt
@@ -7,7 +7,7 @@ XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX p
?>
--FILE--
<?php
-chdir(dirname(__FILE__));
+chdir(__DIR__);
class myclass
{
diff --git a/ext/xml/tests/xml003.phpt b/ext/xml/tests/xml003.phpt
index dd5d8d1e44..fb4cbbd29e 100644
--- a/ext/xml/tests/xml003.phpt
+++ b/ext/xml/tests/xml003.phpt
@@ -7,7 +7,7 @@ XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX p
?>
--FILE--
<?php
-chdir(dirname(__FILE__));
+chdir(__DIR__);
class myclass
{
diff --git a/ext/xml/tests/xml004.phpt b/ext/xml/tests/xml004.phpt
index a9e68e103f..1e545db2a1 100644
--- a/ext/xml/tests/xml004.phpt
+++ b/ext/xml/tests/xml004.phpt
@@ -4,7 +4,7 @@ XML parser case folding test
<?php include("skipif.inc"); ?>
--FILE--
<?php
-chdir(dirname(__FILE__));
+chdir(__DIR__);
$xp = xml_parser_create();
xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, false);
diff --git a/ext/xml/tests/xml_closures_001.phpt b/ext/xml/tests/xml_closures_001.phpt
index defffbb2ae..da9d849da5 100644
--- a/ext/xml/tests/xml_closures_001.phpt
+++ b/ext/xml/tests/xml_closures_001.phpt
@@ -4,7 +4,7 @@ XML parser test using closures as callbacks
<?php include("skipif.inc"); ?>
--FILE--
<?php
-chdir(dirname(__FILE__));
+chdir(__DIR__);
$start_element = function ($xp, $elem, $attribs)
{