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_ping.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_ping.phpt')
| -rw-r--r-- | ext/mysql/tests/mysql_ping.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/mysql/tests/mysql_ping.phpt b/ext/mysql/tests/mysql_ping.phpt index f9162ebf24..2e4130e33f 100644 --- a/ext/mysql/tests/mysql_ping.phpt +++ b/ext/mysql/tests/mysql_ping.phpt @@ -1,7 +1,10 @@ --TEST-- mysql_ping() --SKIPIF-- -<?php require_once('skipif.inc'); ?> +<?php +require_once('skipif.inc'); +require_once('skipifconnectfailure.inc'); +?> --FILE-- <?php include_once "connect.inc"; |
