Introduction to CUBRID PHP Driver Unit Tests


Overview

There are some unit tests in directory tests. These unit tests use the PHP official unit test mechanism. The script run-tests.php is PHP official unit test tool.

Configuring the Test

Before running these unit tests, you should add the CUBRID database information on you system in connect.inc.

Make sure that the demodb is created in CUBRID, and set db to demodb. The "demodb" normally will be created when you install CUBRID. If you didn't install it, you can create it later. In Linux, for example, in $CUBRID/demo, run the following commands:

$ sh make_cubrid_demo.sh

Run Tests

Before run these unit tests, you should indicate which php executable to test by setting environment TEST_PHP_EXECUTABLE.
Then run test codes on command line:

For example:

$ php run-tests.php cubrid_query.phpt

Trackback '2'

CUBRID PHP Driver

Official CUBRID PHP Driver is available as a PECL package. Download [CUBRID PHP Driver Installation Instructions|Installation Instructions] [CUBRID PHP Tutor...

3 months ago

CUBRID PHP Driver

Official CUBRID PHP Driver is available as a PECL package. Download Installation Instructions Latest News, Guides and Tutorials PHP specific Questions and Answers...

3 months ago

Page info
viewed 328 times
translations en
Author
posted 9 months ago by
hellohuizhang
Contributors
updated 4 months ago by
View revisions
Share this article