mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
- Add tests
This commit is contained in:
18
tests/func/008.phpt
Normal file
18
tests/func/008.phpt
Normal file
@@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
Output buffering tests / Implicit flush off
|
||||
--POST--
|
||||
--GET--
|
||||
--INI--
|
||||
implicit_flush=0
|
||||
--FILE--
|
||||
<?php
|
||||
$res = var_export("foo1");
|
||||
echo "\n";
|
||||
$res = var_export("foo2", TRUE);
|
||||
echo "\n";
|
||||
echo $res."\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
'foo1'
|
||||
|
||||
'foo2'
|
||||
18
tests/func/009.phpt
Normal file
18
tests/func/009.phpt
Normal file
@@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
Output buffering tests / Implicit flush off
|
||||
--POST--
|
||||
--GET--
|
||||
--INI--
|
||||
implicit_flush=1
|
||||
--FILE--
|
||||
<?php
|
||||
$res = var_export("foo1");
|
||||
echo "\n";
|
||||
$res = var_export("foo2", TRUE);
|
||||
echo "\n";
|
||||
echo $res."\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
'foo1'
|
||||
|
||||
'foo2'
|
||||
Reference in New Issue
Block a user