Skip to content

Commit 9705e31

Browse files
author
Zoe Slattery
committed
clarification of wwwhether 'make test' needs the PHP xecutable to be set
1 parent 105c017 commit 9705e31

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.TESTING

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ sapi/cli/php [-c /path/to/php.ini] run-tests.php [ext/foo/tests/GLOB]
3232

3333
[Which "php" executable "make test" look for]
3434
---------------------------------------------
35-
You must use TEST_PHP_EXECUTABLE environment variable to explicitly
36-
select the php executable to be used to run the tests. That can either
37-
be the CLI or CGI executable.
35+
If you are running the run-tests.php script from the command line (as above)
36+
you must set the TEST_PHP_EXECUTABLE environment variable to explicitly
37+
select the PHP executable that is to be tested, that is, used to run the test scripts.
3838

39-
"make test" executes "run-tests.php" script with "php" binary. Some
39+
If you run the tests using make test, the PHP CLI and CGI executables are
40+
automatically set for you. "make test" executes "run-tests.php" script with the CLI binary. Some
4041
test scripts such as session must be executed by CGI SAPI. Therefore,
4142
you must build PHP with CGI SAPI to perform all tests.
4243

0 commit comments

Comments
 (0)