Annotation of embedaddon/php/ext/mysqli/tests/mysqli_get_proto_info.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mysqli_get_proto_info()
! 3: --SKIPIF--
! 4: <?php
! 5: require_once('skipif.inc');
! 6: require_once('skipifemb.inc');
! 7: require_once('skipifconnectfailure.inc');
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: require_once("connect.inc");
! 12:
! 13: if (!is_null($tmp = @mysqli_get_proto_info()))
! 14: printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
! 15:
! 16: if (!is_null($tmp = @mysqli_get_proto_info(NULL)))
! 17: printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
! 18:
! 19: require "table.inc";
! 20: if (!is_int($info = mysqli_get_proto_info($link)) || ($info < 1))
! 21: printf("[003] Expecting int/any_non_empty, got %s/%s\n", gettype($info), $info);
! 22:
! 23: if (!is_null($tmp = @mysqli_get_proto_info('too many', 'arguments')))
! 24: printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
! 25:
! 26: print "done!";
! 27: ?>
! 28: --EXPECTF--
! 29: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>