]> granicus.if.org Git - php/commitdiff
test to function PDO_getAvaliableDrivers;
authormarcosptf <marcosptf@yahoo.com.br>
Thu, 17 Dec 2015 19:46:27 +0000 (17:46 -0200)
committerJulien Pauli <jpauli@php.net>
Thu, 24 Dec 2015 09:45:39 +0000 (10:45 +0100)
was add new function to PDO::getAvailableDrivers

ext/pdo_mysql/tests/PDO_getAvaliableDrivers.phpt [new file with mode: 0644]

diff --git a/ext/pdo_mysql/tests/PDO_getAvaliableDrivers.phpt b/ext/pdo_mysql/tests/PDO_getAvaliableDrivers.phpt
new file mode 100644 (file)
index 0000000..e90ab5f
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+public static array PDO::getAvailableDrivers ( void );
+array pdo_drivers ( void );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
+--FILE--
+<?php
+print((is_array(PDO::getAvailableDrivers())) ? ("yes") : ("Test 'array stream_get_wrappers ( void );' has failed"));
+?>
+--EXPECT--
+yes