Skip to content

Commit dfc0d12

Browse files
committed
* fix docs
1 parent d0c6551 commit dfc0d12

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/source/miscellaneous/writing-tests.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ might use a variation tests to test boundary conditions.
9595
How big is a test case?
9696
=======================
9797

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.
105105

106106
Comments
107107
========
@@ -183,10 +183,10 @@ Testing your test cases
183183

184184
Most people who write tests for PHP don't have access to a huge number of operating systems but the
185185
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.
190190

191191
When you are testing your test case it's really important to make sure that you clean up any
192192
temporary resources (eg files) that you used in the test. There is a special ``--CLEAN--`` section

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy