mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Remove unnecessary uses of restore_include_path() in tests
This commit is contained in:
@@ -28,7 +28,6 @@ $newpath = create_include_path();
|
||||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ $newpath = create_include_path();
|
||||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
|
||||
|
||||
set_include_path("rubbish");
|
||||
testme();
|
||||
restore_include_path();
|
||||
|
||||
|
||||
function testme() {
|
||||
|
||||
@@ -21,7 +21,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
|
||||
|
||||
function runtest() {
|
||||
|
||||
@@ -25,7 +25,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
|
||||
foreach($modes as $mode) {
|
||||
test_fopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
||||
@@ -24,7 +24,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
|
||||
foreach($modes as $mode) {
|
||||
test_fopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
||||
@@ -25,7 +25,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_relative_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ $newpath = create_include_path();
|
||||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ $newpath = create_include_path();
|
||||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
|
||||
//define the files to go into these directories, create one in dir2
|
||||
set_include_path($newIncludePath);
|
||||
test_gzfile();
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
||||
@@ -26,7 +26,6 @@ $modes = array("r", "r+", "rt");
|
||||
foreach($modes as $mode) {
|
||||
test_gzopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
||||
@@ -29,7 +29,6 @@ set_include_path($newpath);
|
||||
runtest();
|
||||
|
||||
teardown_relative_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
|
||||
//define the files to go into these directories, create one in dir2
|
||||
set_include_path($newIncludePath);
|
||||
test_readgzfile();
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
||||
Reference in New Issue
Block a user