summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Schürmann <sebs@php.net>2009-04-25 11:33:26 (GMT)
committerSebastian Schürmann <sebs@php.net>2009-04-25 11:33:26 (GMT)
commit7942cd2c3cb11fb431c7949c4ae5a187dfa9f9dc (patch)
treee0db0a76672cd6669ffbbab42792a2201b946848
parenta3a20e29c29fce0b8de72919858643efd9200fcf (diff)
downloadphp-7942cd2c3cb11fb431c7949c4ae5a187dfa9f9dc.tar.gz
- Initial commit
-rw-r--r--ext/standard/tests/versioning/php_sapi_name_variation001.phpt14
-rw-r--r--tests/output/ob_get_status.phpt34
2 files changed, 48 insertions, 0 deletions
diff --git a/ext/standard/tests/versioning/php_sapi_name_variation001.phpt b/ext/standard/tests/versioning/php_sapi_name_variation001.phpt
new file mode 100644
index 0000000..4e45870
--- /dev/null
+++ b/ext/standard/tests/versioning/php_sapi_name_variation001.phpt
@@ -0,0 +1,14 @@
+--TEST--
+php_sapi_name() function when switching to webserver by using post
+--POST--
+foo=BAR
+--CREDITS--
+Sebastian Schürmann
+sebs@php.net
+Testfest 2009 Munich
+--FILE--
+<?php
+echo php_sapi_name();
+?>
+--EXPECT--
+cgi-fcgi
diff --git a/tests/output/ob_get_status.phpt b/tests/output/ob_get_status.phpt
new file mode 100644
index 0000000..a6a3498
--- /dev/null
+++ b/tests/output/ob_get_status.phpt
@@ -0,0 +1,34 @@
+--TEST--
+ob_get_status() function basic test
+--CREDITS--
+Sebastian Schürmann
+sebs@php.net
+Testfest 2009 Munich
+--FILE--
+<?php
+ob_start();
+$status = ob_get_status(true);
+ob_end_clean();
+var_dump($status);
+?>
+--EXPECT--
+array(1) {
+ [0]=>
+ array(7) {
+ ["chunk_size"]=>
+ int(0)
+ ["size"]=>
+ int(40960)
+ ["block_size"]=>
+ int(10240)
+ ["type"]=>
+ int(1)
+ ["status"]=>
+ int(0)
+ ["name"]=>
+ string(22) "default output handler"
+ ["del"]=>
+ bool(true)
+ }
+}
+