]> granicus.if.org Git - php/commitdiff
test to function stream_get_transports();
authormarcosptf <marcosptf@yahoo.com.br>
Thu, 10 Dec 2015 21:48:55 +0000 (19:48 -0200)
committerJulien Pauli <jpauli@php.net>
Thu, 24 Dec 2015 09:53:53 +0000 (10:53 +0100)
ext/standard/tests/streams/stream_get_transports.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/streams/stream_get_transports.phpt b/ext/standard/tests/streams/stream_get_transports.phpt
new file mode 100644 (file)
index 0000000..0d4e194
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+array stream_get_transports ( 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_transports())) ? ("yes") : ("Test 'array stream_get_transports ( void );' has failed"));
+?>
+--EXPECT--
+yes