@@ -95,13 +95,13 @@ might use a variation tests to test boundary conditions.
95
95
How big is a test case?
96
96
=======================
97
97
98
- Small. Really — the smaller the better, a good guide is no more than 10 lines of output. The
99
- reason for this is that if we break something in PHP and it breaks your test case we need to be able
100
- to find out quite quickly what we broke, going through 1000s of line of test case output is not
101
- easy. Having said that it's sometimes just not practical to stay within the 10 line guideline, in
102
- this case you can help a lot by commenting the output. You may find plenty of much longer tests in
103
- PHP - the small tests message is something that we learnt over time, in fact we are slowly going
104
- through and splitting tests up when we need to.
98
+ Small. Really — the smaller the better, a good guide is no more than 10 lines of output. The reason
99
+ for this is that if we break something in PHP and it breaks your test case we need to be able to
100
+ find out quite quickly what we broke, going through 1000s of line of test case output is not easy.
101
+ Having said that it's sometimes just not practical to stay within the 10 line guideline, in this
102
+ case you can help a lot by commenting the output. You may find plenty of much longer tests in PHP -
103
+ the small tests message is something that we learnt over time, in fact we are slowly going through
104
+ and splitting tests up when we need to.
105
105
106
106
Comments
107
107
========
@@ -183,10 +183,10 @@ Testing your test cases
183
183
184
184
Most people who write tests for PHP don't have access to a huge number of operating systems but the
185
185
tests are run on every system that runs PHP. It's good to test your test on as many platforms as you
186
- can — Linux and Windows are the most important, it's increasingly important to make sure that
187
- tests run on 64 bit as well as 32 bit platforms. If you only have access to one operating system —
188
- don't worry, if you have karma, commit the test but watch php-qa@lists.php.net for reports of
189
- failures on other platforms. If you don't have karma to commit have a look at the next section.
186
+ can — Linux and Windows are the most important, it's increasingly important to make sure that tests
187
+ run on 64 bit as well as 32 bit platforms. If you only have access to one operating system — don't
188
+ worry, if you have karma, commit the test but watch php-qa@lists.php.net for reports of failures on
189
+ other platforms. If you don't have karma to commit have a look at the next section.
190
190
191
191
When you are testing your test case it's really important to make sure that you clean up any
192
192
temporary resources (eg files) that you used in the test. There is a special ``--CLEAN-- `` section
0 commit comments