php-src/ext/interbase/tests/001.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

35 lines
672 B
PHP

--TEST--
InterBase: create test database
--SKIPIF--
<?php if (!extension_loaded("interbase")) print "skip"; ?>
--POST--
--GET--
--FILE--
<?
/* $Id$ */
$test_base = "ibase_test.tmp";
$name = tempnam("","CREATEDB");
$ftmp = fopen($name,"w");
if (is_file($test_base))
fwrite($ftmp,
"connect \"$test_base\";
drop database;\n"
);
fwrite($ftmp,
"create database \"$test_base\";
create table test1 (
i integer,
c varchar(100)
);
commit;
insert into test1(i, c) values(1, 'test table created with isql');
exit;\n"
);
fclose($ftmp);
exec("isql -i $name 2>&1");
unlink($name);
?>
--EXPECT--