Annotation of embedaddon/php/ext/mysql/tests/mysql_get_client_info.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mysql_get_client_info()
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7: include "connect.inc";
! 8: if (!is_string($info = mysql_get_client_info()) || ('' === $info))
! 9: printf("[001] Expecting string/any_non_empty, got %s/%s\n", gettype($info), $info);
! 10:
! 11: if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($info)) {
! 12: printf("[002] Expecting Unicode!\n");
! 13: var_inspect($info);
! 14: }
! 15:
! 16: if (!is_null($tmp = @mysql_get_client_info("too many arguments"))) {
! 17: printf("[003] Expecting NULL/NULL got %s/%s\n", $tmp, gettype($tmp));
! 18: }
! 19:
! 20: print "done!";
! 21: ?>
! 22: --EXPECTF--
! 23: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>