summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/21pg_get_notify.phpt
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-20 00:14:46 +0000
committerMarcus Boerger <helly@php.net>2003-05-20 00:14:46 +0000
commitdaded6e633a57a499a11fb97e417d063cc803058 (patch)
tree0911a0c4dba0091bbfde6fc4a1bafbd55e8c1291 /ext/pgsql/tests/21pg_get_notify.phpt
parent4a113728053fdd17c8ab59f323c7d62881f087a1 (diff)
downloadphp-git-daded6e633a57a499a11fb97e417d063cc803058.tar.gz
Reorganized tests
Diffstat (limited to 'ext/pgsql/tests/21pg_get_notify.phpt')
-rw-r--r--ext/pgsql/tests/21pg_get_notify.phpt12
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/pgsql/tests/21pg_get_notify.phpt b/ext/pgsql/tests/21pg_get_notify.phpt
index 0ff3a74a26..9171fc01aa 100644
--- a/ext/pgsql/tests/21pg_get_notify.phpt
+++ b/ext/pgsql/tests/21pg_get_notify.phpt
@@ -4,7 +4,17 @@ PostgreSQL pg_get_notify() functions
<?php include("skipif.inc"); ?>
--FILE--
<?php
-include("pg_get_notify.inc");
+// optional functions
+
+include('config.inc');
+
+$db = pg_connect($conn_str);
+pg_query($db, 'LISTEN test_msg');
+pg_query($db, 'NOTIFY test_msg');
+
+$msg = pg_get_notify($db);
+
+isset($msg['message'],$msg['pid']) ? print 'OK' : print 'NG';
?>
--EXPECT--
OK