Skip to content

Commit 3e15c17

Browse files
committed
Update tests that rely on undocumented behaviour
1 parent 3e3c4f5 commit 3e15c17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/phar/tests/phar_oo_011.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $phar->setInfoClass('SplFileObject');
1919
$phar['hi/f.php'] = 'hi';
2020
var_dump(isset($phar['hi']));
2121
var_dump(isset($phar['hi/f.php']));
22-
echo $phar['hi/f.php'];
22+
echo $phar['hi/f.php']->fgets();
2323
echo "\n";
2424

2525
?>

ext/phar/tests/phar_oo_012.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $phar->setInfoClass('SplFileObject');
1818

1919
$phar['f.php'] = 'hi';
2020
var_dump(isset($phar['f.php']));
21-
echo $phar['f.php'];
21+
echo $phar['f.php']->fgets();
2222
echo "\n";
2323
unset($phar['f.php']);
2424
var_dump(isset($phar['f.php']));

ext/phar/tests/phar_oo_012_confirm.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $phar->setInfoClass('SplFileObject');
1818

1919
$phar['f.php'] = 'hi';
2020
var_dump(isset($phar['f.php']));
21-
echo $phar['f.php'];
21+
echo $phar['f.php']->fgets();
2222
echo "\n";
2323
$md5 = md5_file($fname);
2424
unset($phar['f.php']);

0 commit comments

Comments
 (0)