diff options
author | Ulf Wendel <uw@php.net> | 2007-08-09 11:53:17 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2007-08-09 11:53:17 +0000 |
commit | fb4967900dc0b604c537e098a41b20dcaeba991f (patch) | |
tree | fbc51f4b9096925df1ef44db9a231fb0ba3d20ad /ext/mysql/tests/mysql_get_host_info.phpt | |
parent | a166bd39ac8d1cfb7cf95e862f036ef4d03dc983 (diff) | |
download | php-git-fb4967900dc0b604c537e098a41b20dcaeba991f.tar.gz |
Same as for ext/mysqli tests: addition of a new environment variable
MYSQL_TEST_SKIP_CONNECT_FAILURE which controls how to deal with connection
problems. If MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) connection
problems will make a test fail. If you set MYSQL_TEST_SKIP_CONNECT_FAILURE
to any value that evaluates to true in PHP, a test which cannot connect to
the database will be skipped.
Diffstat (limited to 'ext/mysql/tests/mysql_get_host_info.phpt')
-rw-r--r-- | ext/mysql/tests/mysql_get_host_info.phpt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/mysql/tests/mysql_get_host_info.phpt b/ext/mysql/tests/mysql_get_host_info.phpt index 73468319f6..213a792fd8 100644 --- a/ext/mysql/tests/mysql_get_host_info.phpt +++ b/ext/mysql/tests/mysql_get_host_info.phpt @@ -1,7 +1,10 @@ --TEST-- mysql_get_host_info() --SKIPIF-- -<?php require_once('skipif.inc'); ?> +<?php +require_once('skipif.inc'); +require_once('skipifconnectfailure.inc'); +?> --FILE-- <?php include_once "connect.inc"; @@ -34,4 +37,4 @@ if (!is_null($tmp = @mysql_get_host_info($link, "too many arguments"))) { print "done!"; ?> --EXPECTF-- -done! +done!
\ No newline at end of file |