cvs: pecl /paradox/tests 012.phpt
| From: | Uwe Steinmann | Date: | Mon, 20 Oct 2003 14:52:47 +0000 |
| Subject: | cvs: pecl /paradox/tests 012.phpt | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-495@lists.php.net to get a copy of this message | ||
steinm Mon Oct 20 10:52:47 2003 EDT
Added files:
/pecl/paradox/tests 012.phpt
Log:
- test creation of paradox file with oo api
Index: pecl/paradox/tests/012.phpt
+++ pecl/paradox/tests/012.phpt
--TEST--
Create an new paradox database
--SKIPIF--
<?php if (!extension_loaded("paradox")) print "skip"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php
$dirname = dirname($SCRIPT_FILENAME);
$fp = fopen($dirname."/px2.db", "w+");
$pxdoc = new paradox_pxdoc();
$fields = array(array("col1", "S"), array("col2", "I"));
@$pxdoc->create_fp($fp, $fields);
$pxdoc->set_tablename("testtabelle");
$pxdoc->close($pxdoc);
?>
--EXPECT--