1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-12 17:37:21 +01:00
ext-pq/tests/_skipif.inc

13 lines
295 B
PHP
Raw Normal View History

2013-01-21 12:13:04 +01:00
<?php
function _ext($ext) {
extension_loaded($ext) or die("skip $ext not loaded");
}
_ext("pq");
2013-01-21 17:44:37 +01:00
include "_setup.inc";
2013-02-14 14:54:22 +01:00
defined("PQ_DSN") or die("skip PQ_DSN undefined");
try {
new pq\Connection(PQ_DSN);
} catch (pq\Exception $e) {
die("skip could not connect to PQ_DSN ".$e->getMessage());
}