Lines Matching refs:tests
3 Failed tests usually indicate a problem with your local system setup
16 tests for all enabled functionalities and extensions using the PHP
20 "tests" directory under source root directory.
25 "make test" basically executes "run-tests.php" script
30 sapi/cli/php [-c /path/to/php.ini] run-tests.php [ext/foo/tests/GLOB]
35 If you are running the run-tests.php script from the command line (as above)
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
42 you must build PHP with CGI SAPI to perform all tests.
44 NOTE: PHP binary executing "run-tests.php" and php binary used for
46 executing "run-tests.php" script, you may get errors.
52 The tests have been written to be independent of that php.ini file,
59 "run-tests.php" ("make test"), without any arguments executes all
60 test scripts by extracting all directories named "tests"
62 which have a "phpt" extension, "run-tests.php" looks at the sections
71 Tester can easily execute tests selectively with as follows.
74 ./sapi/cli/php run-tests.php ext/mbstring/*
75 ./sapi/cli/php run-tests.php ext/mbstring/020.phpt
81 the "run-tests.php" script saves the result, the expected result and the
83 ext/myext/tests/myext.phpt fails to pass, the following files are created:
85 ext/myext/tests/myext.php - actual test file executed
86 ext/myext/tests/myext.log - log of test execution (L)
87 ext/myext/tests/myext.exp - expected output (E)
88 ext/myext/tests/myext.out - output from test script (O)
89 ext/myext/tests/myext.diff - diff of .out and .exp (D)
91 Failed tests are always bugs. Either the test is bugged or not considering
99 NOTE: The files generated by tests can be selected by setting the
114 of independent tests. Set the environment variable REPORT_EXIT_STATUS to 1,
146 NOTE: The exit status of run-tests.php will be 1 when
186 specific to server-tests.php.
188 server-tests.php is backward compatible with tests developed for
189 the original run-tests.php script. server-tests is *not* used by
190 'make test'. server-tests was developed to provide support for
192 PHP tests under any of the SAPI modules that are direct executables,
198 You can run 'php server-tests.php -h' to get all the possible options.
203 see server-tests-config.php for details.
214 When running tests over http, tests that require ini settings different that what
223 1. run tests from the php source directory
224 php server-tests.php -p /path/to/php-cli
226 2. run tests using cgi emulation
227 php server-tests.php -p /path/to/php-cgi
229 3. run tests over http, copying test files into document root
230 php server-tests.php -w -u http://localhost/test -m /path/to/htdocs/test
232 4. run tests over http, php sources have been aliased in web server
233 php server-tests.php -w -u http://localhost/test
235 5. run tests using configuration file
236 php server-tests.php -c /path/to/server-tests-config.php
238 6. run tests using configuration file, but overriding some settings:
240 php server-tests.php -c /path/to/server-tests-config.php -w -t 3 -d /path/to/testdir
248 under server-tests.
255 This section takes no value. It merely provides a simple marker for tests
282 $this->conf all server-tests configuration vars