Open Source RDBMS - Seamless, Scalable, Stable and Free

English | 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
문서 정보
viewed 2358 times
번역 en
작성자
posted 3년 전
hellohuizhang
공헌자
마지막 수정시간 3년 전
변경 내역 보기
Share this article