]> granicus.if.org Git - php/commitdiff
- Fix tests
authorSteph Fox <sfox@php.net>
Mon, 12 May 2008 12:46:41 +0000 (12:46 +0000)
committerSteph Fox <sfox@php.net>
Mon, 12 May 2008 12:46:41 +0000 (12:46 +0000)
ext/phar/tests/fgc_edgecases.phpt
ext/phar/tests/readfile_edgecases.phpt

index 9843f66d12c25c32a4ddd2f5cdd11b9aa631ac8f..e899604e95bfbc6b7d214f0b398897134fb45422 100644 (file)
@@ -47,7 +47,7 @@ echo file_get_contents("foo/" . basename(__FILE__));
 $context = stream_context_create();
 file_get_contents("./hi", 0, $context, 0, -1);
 echo file_get_contents("foob");
-set_include_path("/home/cellog/workspace/php5/ext/phar/tests");
+set_include_path("%stests");
 echo file_get_contents("foob", true);
 echo file_get_contents("./hi", 0, $context);
 echo file_get_contents("../oops");
@@ -65,7 +65,7 @@ echo file_get_contents("foo/" . basename(__FILE__));
 $context = stream_context_create();
 file_get_contents("./hi", 0, $context, 0, -1);
 echo file_get_contents("foob");
-set_include_path("/home/cellog/workspace/php5/ext/phar/tests");
+set_include_path("%stests");
 echo file_get_contents("foob", true);
 echo file_get_contents("./hi", 0, $context);
 echo file_get_contents("../oops");
@@ -83,7 +83,7 @@ echo file_get_contents(\"foo/\" . basename(__FILE__));
 $context = stream_context_create();
 file_get_contents(\"./hi\", 0, $context, 0, -1);
 echo file_get_contents(\"foob\");
-set_include_path(\"/home/cellog/workspace/php5/ext/phar/tests\");
+set_include_path(\"%stests\");
 echo file_get_contents(\"foob\", true);
 echo file_get_contents(\"./hi\", 0, $context);
 echo file_get_contents(\"../oops\");
index de1f5912dfe0824024dcddc231fc35080e20fc66..1a78d7b5b0f9d8fa72d710333b8f880a9f41129e 100644 (file)
@@ -41,7 +41,7 @@ blah
 readfile("foo/" . basename(__FILE__));
 $context = stream_context_create();
 readfile("foob");
-set_include_path("/home/cellog/workspace/php5/ext/phar/tests");
+set_include_path("%stests");
 readfile("foob", true);
 readfile("./hi", 0, $context);
 readfile("../oops");
@@ -52,7 +52,7 @@ test
 readfile("foo/" . basename(__FILE__));
 $context = stream_context_create();
 readfile("foob");
-set_include_path("/home/cellog/workspace/php5/ext/phar/tests");
+set_include_path("%stests");
 readfile("foob", true);
 readfile("./hi", 0, $context);
 readfile("../oops");