Drupal investigation

simpletest.api.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. */