summaryrefslogtreecommitdiff
path: root/ext/interbase/tests/002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/interbase/tests/002.phpt')
-rw-r--r--ext/interbase/tests/002.phpt35
1 files changed, 35 insertions, 0 deletions
diff --git a/ext/interbase/tests/002.phpt b/ext/interbase/tests/002.phpt
new file mode 100644
index 0000000000..6ea1b498ba
--- /dev/null
+++ b/ext/interbase/tests/002.phpt
@@ -0,0 +1,35 @@
+--TEST--
+InterBase: connect, close and pconnect
+--SKIPIF--
+<?php if (!extension_loaded("interbase")) print "skip"; ?>
+--POST--
+--GET--
+--FILE--
+<?
+/* $Id$ */
+
+ require("interbase/interbase.inc");
+
+ $test_base = "ibase_test.tmp";
+
+ ibase_connect($test_base);
+ out_table("test1");
+ ibase_close();
+
+ $con = ibase_connect($test_base);
+ $pcon1 = ibase_pconnect($test_base);
+ $pcon2 = ibase_pconnect($test_base);
+ ibase_close($con);
+ ibase_close($pcon1);
+
+ out_table("test1");
+
+ ibase_close($pcon2);
+?>
+--EXPECT--
+--- test1 ---
+1 test table created with isql
+---
+--- test1 ---
+1 test table created with isql
+---