summaryrefslogtreecommitdiff
path: root/ext/xmlreader/tests/012.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xmlreader/tests/012.phpt')
-rw-r--r--ext/xmlreader/tests/012.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/xmlreader/tests/012.phpt b/ext/xmlreader/tests/012.phpt
index 50b761c235..ba4455ade7 100644
--- a/ext/xmlreader/tests/012.phpt
+++ b/ext/xmlreader/tests/012.phpt
@@ -23,7 +23,7 @@ $xmlstring =<<<EOF
<foo bar=""/>
EOF;
-$xmlstring = str_replace('012.dtd', dirname(__FILE__).'/012.dtd', $xmlstring);
+$xmlstring = str_replace('012.dtd', __DIR__.'/012.dtd', $xmlstring);
if (DIRECTORY_SEPARATOR == '\\') {
$xmlstring = str_replace('\\',"/", $xmlstring);
}
@@ -37,7 +37,7 @@ $reader->close();
echo "\nUsing URI:\n";
$reader = new XMLReader();
-$file = dirname(__FILE__) . '/012.xml';
+$file = __DIR__ . '/012.xml';
if (DIRECTORY_SEPARATOR == '\\') {
$file = str_replace('\\',"/", $file);
}
@@ -51,7 +51,7 @@ var_dump($reader->getAttribute('baz'));
$reader->close();
$reader = new XMLReader();
-$reader->open(dirname(__FILE__) . '/012.xml');
+$reader->open(__DIR__ . '/012.xml');
$reader->setParserProperty(XMLReader::DEFAULTATTRS, true);
while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
var_dump($reader->getAttribute('bar'));