diff options
author | Wez Furlong <wez@php.net> | 2005-07-07 15:15:01 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-07-07 15:15:01 +0000 |
commit | 3c5b9a6e6a1cb7462c5e2ffec23bea34f29a18dd (patch) | |
tree | ccc8c9e1c91fa315716690e01ad51ed27aeeab4e /ext/pdo/tests/pdo_014.phpt | |
parent | 86028ad122a49adfa830bc3675746c83d55d8753 (diff) | |
download | php-git-3c5b9a6e6a1cb7462c5e2ffec23bea34f29a18dd.tar.gz |
skip if we can't connect (include reason in skip output)
Diffstat (limited to 'ext/pdo/tests/pdo_014.phpt')
-rw-r--r-- | ext/pdo/tests/pdo_014.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo/tests/pdo_014.phpt b/ext/pdo/tests/pdo_014.phpt index 8c4e66fa6a..40ac8e877c 100644 --- a/ext/pdo/tests/pdo_014.phpt +++ b/ext/pdo/tests/pdo_014.phpt @@ -3,9 +3,12 @@ PDO Common: PDOStatement SPL iterator --SKIPIF-- <?php # vim:ft=php if (!extension_loaded('pdo')) print 'skip'; -if (false == getenv('REDIR_TEST_DIR')) print 'skip no driver'; if (!extension_loaded('SPL')) print 'skip SPL not available'; if (!class_exists('IteratorIterator')) print 'skip IteratorIterator class not present'; +$dir = getenv('REDIR_TEST_DIR'); +if (false == $dir) print 'skip no driver'; +require_once $dir . 'pdo_test.inc'; +PDOTest::skip(); ?> --FILE-- <?php |