1
0
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:
Nikita Popov
2019-07-12 12:17:24 +02:00
parent 2e56e14e39
commit 9345c191db
18 changed files with 0 additions and 18 deletions

View File

@@ -28,7 +28,6 @@ $newpath = create_include_path();
set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -29,7 +29,6 @@ $newpath = create_include_path();
set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -28,7 +28,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -29,7 +29,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -12,7 +12,6 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
set_include_path("rubbish");
testme();
restore_include_path();
function testme() {

View File

@@ -21,7 +21,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
function runtest() {

View File

@@ -25,7 +25,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -25,7 +25,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -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);

View File

@@ -24,7 +24,6 @@ set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -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);

View File

@@ -25,7 +25,6 @@ set_include_path($newpath);
runtest();
teardown_relative_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -27,7 +27,6 @@ $newpath = create_include_path();
set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -27,7 +27,6 @@ $newpath = create_include_path();
set_include_path($newpath);
runtest();
teardown_include_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -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);

View File

@@ -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);

View File

@@ -29,7 +29,6 @@ set_include_path($newpath);
runtest();
teardown_relative_path();
restore_include_path();
chdir("..");
rmdir($thisTestDir);

View File

@@ -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);