Developer documentation ======
*[[http://wiki.php.net/qa/runtests/documentation/commandline|Command... ======
runtests is a test environment written in PHP. It is used to test PHP itself.
It is not a replacement for unit test frameworks like PHPUnit.
The ba... , the tests fails, and
there is probably a bug in PHP, or some precondition for the test was not met.
====== run-tests.php command line options and environment variables options ======
===== Short Options... ^ implemented ^
| h | | help | yes | yes |
| p | PHP_TEST_EXECUTABLE | Specifies PHP executable to be tested | yes | yes |
| v | | Writes the PHP command that's passed to proc_open(), and ... | y
====== Running the new version of run-tests.php ======
===== Extract the code =====
Checkout the code from the PHP git repository like this:
<code>
git clone http://git.php.net/repository/phpruntests.git
</code>
Under the... tory /tests.
The main program is called run-tests.php. The main program is located in the directory /sr
tting up development environment ======
run-tests.php is a PHP script so all you really need is a fairly standard development environment. This is a brief s... ode this page is not for you - look [[http://wiki.php.net/qa/runtests/howtorun|here]]
==== Installing PHP ====
* Download the PHP 5.4.0 source tar
*
====== Requirements for run-tests.php ======
There are three main reasons to re-write (or re-factor) the existing run-tests.php code, these are:
* The number of core PHP test cases has increased from about 3000 at the beginning... e will have have many thousands of test cases for PHP so the problem will get worse. The only solution
Coding Standards ======
* Use the [[http://pear.php.net/manual/en/standards.php|PEAR coding standard]] (22/04/2009 - see php-qa list for concerns)
* Deviation from the standard: Do... th rt (Reason: avoid name conflicts with built-in PHP classes)
* We do not follow the original PEAR c
-vvv
* Package as a single file (like run-tests.php)
* Add a test using --disable-all and check tha... for parallel code on wiki (G, done: [[http://wiki.php.net/qa/runtests/documentation]])
* Fully explai
ts-script which was our benchmark.
[[http://wiki.php.net/_media//qa/runtests/documentation/performance... is screen is from a 4-way MacPro).
[[http://wiki.php.net/_media//qa/runtests/documentation/cpu_usage.p