php-src/ext/dba/tests/dba001.phpt

26 lines
532 B
Plaintext
Raw Normal View History

2002-10-25 09:42:29 +00:00
--TEST--
DBA File Creation Test
--SKIPIF--
<?php
require_once(dirname(__FILE__) .'/skipif.inc');
die("info $HND handler used");
2002-10-25 09:42:29 +00:00
?>
--FILE--
<?php
require_once(dirname(__FILE__) .'/test.inc');
2002-11-01 14:21:36 +00:00
echo "database handler: $handler\n";
2002-10-25 09:42:29 +00:00
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
2002-11-01 14:21:36 +00:00
echo "database file created\n";
dba_close($db_file);
2002-10-25 09:42:29 +00:00
} else {
echo "$db_file does not exist\n";
}
?>
--CLEAN--
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
2002-10-25 09:42:29 +00:00
--EXPECTF--
2002-11-01 14:21:36 +00:00
database handler: %s
database file created