Skip to content

Commit 9345c19

Browse files
committed
Remove unnecessary uses of restore_include_path() in tests
1 parent 2e56e14 commit 9345c19

18 files changed

+0
-18
lines changed

ext/standard/tests/file/file_get_contents_variation1.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ $newpath = create_include_path();
2828
set_include_path($newpath);
2929
runtest();
3030
teardown_include_path();
31-
restore_include_path();
3231
chdir("..");
3332
rmdir($thisTestDir);
3433

ext/standard/tests/file/file_get_contents_variation2.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ $newpath = create_include_path();
2929
set_include_path($newpath);
3030
runtest();
3131
teardown_include_path();
32-
restore_include_path();
3332
chdir("..");
3433
rmdir($thisTestDir);
3534

ext/standard/tests/file/file_put_contents_variation4.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ set_include_path($newpath);
2828
runtest();
2929

3030
teardown_include_path();
31-
restore_include_path();
3231
chdir("..");
3332
rmdir($thisTestDir);
3433

ext/standard/tests/file/file_put_contents_variation6.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ set_include_path($newpath);
2929
runtest();
3030

3131
teardown_include_path();
32-
restore_include_path();
3332
chdir("..");
3433
rmdir($thisTestDir);
3534

ext/standard/tests/file/fopen_variation12.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
1212

1313
set_include_path("rubbish");
1414
testme();
15-
restore_include_path();
1615

1716

1817
function testme() {

ext/standard/tests/file/fopen_variation13.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ set_include_path($newpath);
2121
runtest();
2222

2323
teardown_include_path();
24-
restore_include_path();
2524

2625

2726
function runtest() {

ext/standard/tests/file/fopen_variation16.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ set_include_path($newpath);
2525
runtest();
2626

2727
teardown_include_path();
28-
restore_include_path();
2928
chdir("..");
3029
rmdir($thisTestDir);
3130

ext/standard/tests/file/fopen_variation17.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ set_include_path($newpath);
2525
runtest();
2626

2727
teardown_include_path();
28-
restore_include_path();
2928
chdir("..");
3029
rmdir($thisTestDir);
3130

ext/standard/tests/file/fopen_variation5.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
4545
foreach($modes as $mode) {
4646
test_fopen($mode);
4747
}
48-
restore_include_path();
4948

5049
// remove the directory structure
5150
chdir($baseDir);

ext/standard/tests/file/fopen_variation7.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ set_include_path($newpath);
2424
runtest();
2525

2626
teardown_include_path();
27-
restore_include_path();
2827
chdir("..");
2928
rmdir($thisTestDir);
3029

0 commit comments

Comments
 (0)