d1b5f442c779b49586d38be0a2729bad184c1006
[yaffs-website] / web / core / modules / simpletest / simpletest.api.php
1 <?php
2
3 /**
4  * @file
5  * Hooks provided by the SimpleTest module.
6  */
7
8 /**
9  * @addtogroup hooks
10  * @{
11  */
12
13 /**
14  * Alter the list of tests.
15  *
16  * @param $groups
17  *   A two dimensional array, the first key is the test group, the second is the
18  *   name of the test class, and the value is in associative array containing
19  *   'name', 'description', 'group', and 'requires' keys.
20  */
21 function hook_simpletest_alter(&$groups) {
22   // An alternative session handler module would not want to run the original
23   // Session HTTPS handling test because it checks the sessions table in the
24   // database.
25   unset($groups['Session']['testHttpsSession']);
26 }
27
28 /**
29  * A test group has started.
30  *
31  * This hook is called just once at the beginning of a test group.
32  */
33 function hook_test_group_started() {
34 }
35
36 /**
37  * A test group has finished.
38  *
39  * This hook is called just once at the end of a test group.
40  */
41 function hook_test_group_finished() {
42 }
43
44 /**
45  * An individual test has finished.
46  *
47  * This hook is called when an individual test has finished.
48  *
49  * @param
50  *   $results The results of the test as gathered by
51  *   \Drupal\simpletest\WebTestBase.
52  *
53  * @see \Drupal\simpletest\WebTestBase::results()
54  */
55 function hook_test_finished($results) {
56 }
57
58
59 /**
60  * @} End of "addtogroup hooks".
61  */