summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+ }
+}
+