mirror of
https://github.com/php/php-src.git
synced 2024-10-13 20:42:38 +00:00
315f4f5658
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.
36 lines
615 B
PHP
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
|
|
---
|