simpletest.api.php 1.3 KB

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