diff options
Diffstat (limited to 'README.TESTING')
-rw-r--r-- | README.TESTING | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/README.TESTING b/README.TESTING index 1dfafc87fc..5d7c0f6fde 100644 --- a/README.TESTING +++ b/README.TESTING @@ -39,7 +39,7 @@ executing "run-tests.php" script, you may get errors. [Which php.ini is used] ----------------------- "make test" uses the same php.ini file as it would once installed. -The tests have been written to be independant of that php.ini file, +The tests have been written to be independent of that php.ini file, so if you find a test that is affected by a setting, please report this, so we can address the issue. @@ -51,12 +51,12 @@ test scripts by extracting all directories named "tests" from the source root and any subdirectories below. If there are files, which have a "phpt" extension, "run-tests.php" looks at the sections in these files, determines whether it should run it, by evaluating -the 'SKIP' section. If the test is elligable for execution, the 'FILE' +the 'SKIP' section. If the test is eligible for execution, the 'FILE' section is extracted into a ".php" file, with a unique name and executed. When an argument is given or TESTS environment variable is set, the GLOB is expanded by the shell and any file with extension "*.phpt" is -regarded as a testfile. +regarded as a test file. Tester can easily execute tests selectively with as follows. @@ -72,7 +72,7 @@ the "run-tests.php" script saves the result, the expected result and the code executed to the test script directory. For example, if ext/myext/tests/myext.phpt fails to pass, the following files are created: -ext/myext/tests/myext.php - actual testfile executed +ext/myext/tests/myext.php - actual test file executed ext/myext/tests/myext.log - log of test execution (L) ext/myext/tests/myext.exp - expected output (E) ext/myext/tests/myext.out - output from test script (O) @@ -80,11 +80,11 @@ ext/myext/tests/myext.diff - diff of .out and .exp (D) Failed tests are always bugs. Either the test is bugged or not considering factors applying to the tester's environment, or there is a bug in PHP. -If this is a known bug, we strive to provide bugnumbers, in either the +If this is a known bug, we strive to provide bug numbers, in either the test name or the file name. You can check the status of such a bug, by -going to: http://bugs.php.net/12345 where 12345 is the bugnumber. -For clarity and automated processing, bugnumbers are prefixed by a hash -sign '#' in testnames and/or testcases are named bug12345.phpt. +going to: http://bugs.php.net/12345 where 12345 is the bug number. +For clarity and automated processing, bug numbers are prefixed by a hash +sign '#' in test names and/or test cases are named bug12345.phpt. NOTE: The files generated by tests can be selected by setting the environment variable TEST_PHP_LOG_FORMAT. For each file you want to be @@ -100,7 +100,7 @@ assurance, setting the environment variable NO_INTERACTION to 1, will not prompt the tester for any user input. Normally, the exit status of "make test" is zero, regardless of the results -of independant tests. Set the environment variable REPORT_EXIT_STATUS to 1, +of independent tests. Set the environment variable REPORT_EXIT_STATUS to 1, and "make test" will set the exit status ("$?") to non-zero, when an individual test has failed. @@ -212,10 +212,10 @@ values for some input. /ext/standard/tests/strings 003.phpt is a good example for using EXPECTF -instead of EXPECT. From time to time the algorythmn used for shuffle +instead of EXPECT. From time to time the algorithm used for shuffle changed and sometimes the machine used to execute the code has influence -on the result of shuffle. But it always retuns a three character string -detectable by %s. Other forms scanable are %i for integers, %f for +on the result of shuffle. But it always returns a three character string +detectable by %s. Other scan-able forms are %i for integers, %f for floating point values and %x for hexadecimal values. ==== /ext/standard/tests/strings 003.phpt === |