writing test cases
| From: | Kai Schröder | Date: | Mon, 03 Feb 2003 16:48:28 +0000 |
| Subject: | writing test cases | ||
| Groups: | php.dev php.qa | ||
| Request: | Send a blank email to php-dev+get-93949@lists.php.net to get a copy of this message | ||
Hi all,
please take care if you write test cases.
Tests for PHP5/ZE2 only are also in the PHP4 branch, but some of them have
no SKIPIF for versions < 5.0.0, please use version_compare() to skip these
tests for lower versions. Same problem with tests for changed functions (for
instance range()). This test failed for 4.3.1-dev, because PHP < 5 doesn't
know the third parameter. Please don't mix tests across the versions, write
a new test with version check for a new parameter/feature.
In addition to my yesterday's mail I've found a new broken test:
tests/lang/bug21961.phpt
Thanks, Kai