====== PHP TestFest 2010 ======
//This page contains out-dated material and is archived here for infor... r recent information, see the [[qa:testfest| main PHP TestFest page]].//
===== What is TestFest? =====
TestFest is an annual PHP community campaign designed to increase the test coverage of the PHP language. During this four month event, PHP User
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.
====== PHP TestFest 2009 ======
//This page contains out-dated material and is archived here for infor... r recent information, see the [[qa:testfest| main PHP TestFest page]].//
===== How do I join? How do I... get more information? =====
See the [[http://qa.php.net/testfest.php|TestFest]] homepage on the QA team website for details. Alternatively you can join #p
me.
[[http://tinyurl.com/c9bqf4]]
===== How is PHP Tested =====
==== What is a PHPT ====
A phpt test is a little script used by the php internal and quality assurance teams to test PHP's functionality. It can be used with new releases to ... es. By writing phpt tests you are helping to make PHP more stable.
==== Requirements ====
All that is
====== 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
nction calls in the tests with a complete list of PHP's internal functions. At the end it will tell you if there is a function in PHP that is not mentioned in any test case (I get 415). Thanks to Damien Seguy for this.
<code php>
<?php
// define here your PHP source directory
define('PHP_SRC','/home/zoe/BUILDS/php53_dev');
//Ge
====== 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
====== Building a PHP Test Environment in Windows ======
Building a PHP test environment on Windows is a three step process... Package (x86)”.
- Install the latest version of PHP 5.2.
- Install the latest version of PHP 5.3.
We recommend you run tests you've written against the
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
====== Building a PHP Test Environment on Mac OS X ======
The following instructions were written for ... rting to build your test environment.
Building a PHP test environment on Mac OS X is a three step proc... you've written against the three main branches of PHP: 5.2, 5.3 and Trunk.
The rest of the instruction... hat Mac OS X needs to configure compile and build PHP are all included in Xcode. Xcode can be installed
====== PHP TestFest Organizer Tips ======
==== Suggestions and checklist ====
===Advance planning===
... Local usergroup news feed
* Calendar entry on php.net/cal
* Announcement to php-qa@lists.php.net
* Any other blogs or relevant places you can think of
* After a short while, ch
evelopment pages for the new version of run-tests.php ======
These are the development pages for the new version of run-tests.php, the code which runs .phpt tests.
* [[http://wiki.php.net/qa/runtests/requirements|Requirements]]
Initi... will be added as we find them.
* [[http://wiki.php.net/qa/runtests/development|Development]]
If you
s to be set as follows (on Unix):\\
<code>
export PHP_CURL_HTTP_REMOTE_SERVER=http://www.example.com
export PHP_CURL_FTP_REMOTE_SERVER="ftp.example.net";
export PHP_CURL_FTP_REMOTE_USER="ftpusername";
export PHP_CURL_FTP_REMOTE_PASSWD="ftppassword";
</code>
Where htt
====== Building a PHP Test Environment on Ubuntu ======
The following instructions were written for an... rting to build your test environment.
Building a PHP test environment on Ubuntu is a two step process:... you've written against the three main branches of PHP: 5.2, 5.3 and Trunk.
The rest of the instruction... ''
''wget http://www.ericstewart.org/public/phpt/PHP-Test-Build-Scripts.tgz''
''tar -xzf PHP-Test-Bui