The PHP source code includes tests for all the core functionality and extensions. You should run the tests after building PHP.
The test suite can't test everything. You should test your applications with your new PHP too. This gives load and real-life testing not possible with PHP's script based test suite.
You should also strongly consider contributing tests to the PHP
community. Adding tests that are relevant to your application
minimizes the risks of PHP developers breaking PHP features important
The tests in ext/oci8/tests verify the behavior of the OCI8 extension. To run them follow these steps.
1. Edit ext/oci8/tests/details.inc and set the Oracle SYSTEM user password for your database:
$user = "system";
$password = "mypassword";(In older versions of PHP these variables are located in connect.inc).
$dbase = "//localhost/XE";
$oracle_on_localhost = TRUE;
variables_order = "EGPCS"
$ . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
$ cd /home/cjones/myphpsource
$ make test
$ make test TESTS=ext/oci8
CWD : /home/cjones/php
PHP : /home/cjones/php/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 5.2.2
PHP_OS : Linux - Linux localhost.localdomain 2.6.9-126.96.36.199.1.EL
INI actual : /home/cjones/php/lib/php.ini
More .INIs :
Extra dirs :
Running selected tests.
PASS oci_bind_array_by_name() and invalid values 1 [ext/oci8/tests/array_bind_001.phpt]
PASS oci_bind_array_by_name() and invalid values 2 [ext/oci8/tests/array_bind_002.phpt]
PASS oci_bind_array_by_name() and invalid values 3 [ext/oci8/tests/array_bind_003.phpt]
. . .Successful tests begin with PASS. Tests that are to be skipped in the current configuration are marked SKIP. Failing tests are marked FAIL. A summary of the failing tests is given at the completion of the tests.