]> granicus.if.org Git - php/commitdiff
test to function stream_get_wrappers();
authormarcosptf <marcosptf@yahoo.com.br>
Fri, 11 Dec 2015 12:43:20 +0000 (10:43 -0200)
committerJulien Pauli <jpauli@php.net>
Thu, 24 Dec 2015 09:51:51 +0000 (10:51 +0100)
ext/standard/tests/streams/stream_get_wrappers.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/streams/stream_get_wrappers.phpt b/ext/standard/tests/streams/stream_get_wrappers.phpt
new file mode 100644 (file)
index 0000000..e02b539
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+array stream_get_wrappers ( void );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
+--SKIPIF--
+<?php
+if (phpversion() < "5.3.0") {
+  die('SKIP php version so lower.');
+}
+?>
+--FILE--
+<?php
+print((is_array(stream_get_wrappers())) ? ("yes") : ("Test 'array stream_get_wrappers ( void );' has failed"));
+?>
+--EXPECT--
+yes