]> granicus.if.org Git - php/commitdiff
- Fixed tests when run from outside their directory.
authorGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 31 Aug 2011 06:23:24 +0000 (06:23 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 31 Aug 2011 06:23:24 +0000 (06:23 +0000)
ext/libxml/tests/libxml_set_external_entity_loader_variation1.phpt
ext/libxml/tests/libxml_set_external_entity_loader_variation2.phpt

index 1bb88d604eaeb3b48dfd071e26b004dc284cd3bc..6310bb44c3281c829a05aeb1817e123dda68571e 100644 (file)
@@ -4,6 +4,7 @@ libxml_set_external_entity_loader() variation: resolve externals and entities
 <?php if (!extension_loaded('dom')) die('skip'); ?>
 --FILE--
 <?php
+chdir(__DIR__);
 $xml = <<<XML
 <!DOCTYPE foo PUBLIC "-//FOO/BAR" "http://example.com/foobar">
 <foo>bar&fooz;</foo>
index bec04aa7636aba22fc8b7cd9e9b3b42649a78ed2..d0fd066f390d1c14a0c490a2c98cd5f87280366e 100644 (file)
@@ -7,6 +7,7 @@ libxml_set_external_entity_loader() variation: restore original handler; returni
 @unlink(__DIR__ . "/foobar.dtd");
 --FILE--
 <?php
+chdir(__DIR__);
 $xml = <<<XML
 <!DOCTYPE foo PUBLIC "-//FOO/BAR" "foobar.dtd">
 <foo>bar</foo>