mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Add tests
This commit is contained in:
parent
cebb0f76b8
commit
b6323ef5e2
2 changed files with 36 additions and 0 deletions
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'
|
Loading…
Add table
Add a link
Reference in a new issue