summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_003.phpt
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-07 15:15:01 +0000
committerWez Furlong <wez@php.net>2005-07-07 15:15:01 +0000
commit3c5b9a6e6a1cb7462c5e2ffec23bea34f29a18dd (patch)
treeccc8c9e1c91fa315716690e01ad51ed27aeeab4e /ext/pdo/tests/pdo_003.phpt
parent86028ad122a49adfa830bc3675746c83d55d8753 (diff)
downloadphp-git-3c5b9a6e6a1cb7462c5e2ffec23bea34f29a18dd.tar.gz
skip if we can't connect (include reason in skip output)
Diffstat (limited to 'ext/pdo/tests/pdo_003.phpt')
-rw-r--r--ext/pdo/tests/pdo_003.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo/tests/pdo_003.phpt b/ext/pdo/tests/pdo_003.phpt
index 56e3f2f0a0..50c1749970 100644
--- a/ext/pdo/tests/pdo_003.phpt
+++ b/ext/pdo/tests/pdo_003.phpt
@@ -3,7 +3,11 @@ PDO Common: PDO_FETCH_BOTH
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo')) print 'skip';
-if (false == getenv('REDIR_TEST_DIR')) print 'skip no driver'; ?>
+$dir = getenv('REDIR_TEST_DIR');
+if (false == $dir) print 'skip no driver';
+require_once $dir . 'pdo_test.inc';
+PDOTest::skip();
+?>
--FILE--
<?php
require getenv('REDIR_TEST_DIR') . 'pdo_test.inc';