|
4 | 4 | $TITLE = "Writing Tests [PHP-QAT: Quality Assurance Team]";
|
5 | 5 | $SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
|
6 | 6 |
|
7 |
| -// This is used below for linking to GCOV (Format: GCOV version => Human readable version) |
8 |
| -function get_active_branches() { |
9 |
| - return [ |
10 |
| - 'PHP_7_1' => '7.1', |
11 |
| - 'PHP_7_2' => '7.2', |
12 |
| - 'PHP_7_3' => '7.3', |
13 |
| - 'PHP_7_4' => '7.4', |
14 |
| - 'PHP_HEAD' => '8.0' |
15 |
| - ]; |
16 |
| -} |
17 |
| - |
18 | 7 | common_header();
|
19 | 8 | ?>
|
20 | 9 | <h1>Creating new test files</h1>
|
@@ -51,24 +40,8 @@ function or an array function) , or a function provided by one of PHP's numerous
|
51 | 40 | (a mysql function or a image function or a mcrypt function).</p>
|
52 | 41 | <p>You can find out what functions already have phpt tests by looking in the <a href="https://github.com/php/php-src">html
|
53 | 42 | version</a> of the git repository (ext/standard/tests/ is a good place to start looking - though not
|
54 |
| -<i>all</i> the tests currently written are in there). If you look at the <a href="http://gcov.php.net">gcov pages</a> you |
55 |
| -can see which functions have lots of tests and which need more, although these pages only |
56 |
| -show which lines of code are covered by test cases so even if the coverage looks good there may |
57 |
| -be more interesting tests to write - for example covering error cases.</p> |
58 |
| - |
59 |
| - <p> |
60 |
| - You can find a list of functionality coverage on GCOV for the following, active branches: |
| 43 | +<i>all</i> the tests currently written are in there).</p> |
61 | 44 |
|
62 |
| - <ul style="list-style-type: square;"> |
63 |
| -<?php |
64 |
| - foreach(get_active_branches() as $gcov_version => $php_version) { |
65 |
| -?> |
66 |
| - <li><a href="http://gcov.php.net/viewer.php?version=<?php echo($gcov_version); ?>&func=tested_functions">PHP <?php echo($php_version); ?></a></li> |
67 |
| -<?php |
68 |
| - } |
69 |
| -?> |
70 |
| - </ul> |
71 |
| - </p> |
72 | 45 | <p>If you want more guidance than that you can always ask
|
73 | 46 | the PHP Quality Assurance Team on their mailing list
|
74 | 47 | (<a href="mailto: [email protected]"> [email protected]</a>) where they
|
|
0 commit comments