Skip to content

Commit 75ceb2c

Browse files
committed
- Replace dirname(__FILE__) with __DIR__
1 parent fa166ce commit 75ceb2c

24 files changed

+25
-25
lines changed

tests/Validate/setup.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
include dirname(__FILE__) . '/../test_framework.php.inc';
2+
include __DIR__ . '/../test_framework.php.inc';

tests/Validator_PECL/setup.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
include dirname(__FILE__) . '/../test_framework.php.inc';
2+
include __DIR__ . '/../test_framework.php.inc';

tests/XMLParser/attribs.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: attributes
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a one="two"/>');
77
$test->assertEquals(array('a' => array('attribs' => array('one' => 'two'))), $res, 'test');
88
$res = $parser->parseString('<?xml version="1.0" ?><a one="two" three="four"/>');

tests/XMLParser/attribs_content.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: attributes + content
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a one="two">hi</a>');
77
$test->assertEquals(array(
88
'a' =>

tests/XMLParser/cdata.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: <![CDATA[]]>
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a><![CDATA[hi<there>]]></a>');
77
$test->assertEquals(array('a' => 'hi<there>'), $res, 'test');
88
?>

tests/XMLParser/childtag.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: child tag
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a><b/></a>');
77
$test->assertEquals(array(
88
'a' =>

tests/XMLParser/childtag_attribs.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: child tag + attributes
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a><b one="two"/></a>');
77
$test->assertEquals(array(
88
'a' =>

tests/XMLParser/childtag_content.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: child tag + content
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a><b/>hi</a>');
77
$test->assertEquals(array(
88
'a' =>

tests/XMLParser/childtag_sibling_attribs.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: child tag + sibling attributes
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a><b /><b one="two"/></a>');
77
$test->assertEquals(array(
88
'a' =>

tests/XMLParser/empty.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pyrus XMLParser: empty xml
33
--FILE--
44
<?php
5-
require dirname(__FILE__) . '/setup.php.inc';
5+
require __DIR__ . '/setup.php.inc';
66
$res = $parser->parseString('<?xml version="1.0" ?><a/>');
77
$test->assertEquals(array('a' => ''), $res, 'test');
88
?>

0 commit comments

Comments
 (0)