Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

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
comments powered by Disqus
Page info
viewed 2640 times
translations en
Author
posted 3 years ago by
hellohuizhang
Contributors
updated 3 years ago by
View revisions
Share this article