PHP TestFest VM Documentation - Running Tests

Documentation Home

PHP source for 5.2, 5.3 and 6.0 have been downloaded, and compiled in the ~/src folder. 5.3 has been installed. All three version are the latest source builds from snaps right before I compacted the vdi and uploaded it.

Run all tests.

To run all PHP 5.2 tests.

cd ~/src/php5.2*
make test

To run all PHP 5.3 tests.

cd ~/src/php5.3*
make test

To run all PHP 6.0 tests.

cd ~/src/php6.0*
make test

Run all tests inside a folder.

In this example, we'll run all tests found in the tests/strings folder for PHP 5.3.

cd ~/src/php5.3*
make test TESTS=./tests/strings

Run a single test.

In this example, we'll run the following single test "tests/strings/001.phpt" for PHP 5.3.

cd ~/src/php5.3*
make test TESTS=./tests/strings/001.phpt