Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug #19034: test fails when executed from package dir (for PEAR QA team)

git-svn-id: https://svn.php.net/repository/pear/packages/XML_Parser/trunk@319354 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 7a60948e9711eb73c9ee496b67ec693922239056 1 parent bbda0f6
Chuck Burgess authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/004b.phpt
View
8 tests/004b.phpt
@@ -11,7 +11,13 @@ if (!extension_loaded('xml')) {
?>
--FILE--
<?php
-require_once 'XML/Parser.php';
+chdir (dirname(__FILE__));
+if (file_exists('../Parser.php')) {
+ require_once "../Parser.php";
+} else {
+ require_once "XML/Parser.php";
+}
+
print 'New XML_Parser: ';
var_dump(strtolower(get_class($p = new XML_Parser())));
$e = $p->parseString("<?xml version='1.0' ?>\n<foo></bar>", true);
Please sign in to comment.
Something went wrong with that request. Please try again.