php-src/ext/interbase/tests/002.phpt
Stig Bakken 315f4f5658 @PHP 3 regression testing framework re-born (Stig)
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows.  See tests/README for how to write tests.  Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00

36 lines
615 B
PHP

--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
---