Unit.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. namespace Helper;
  3. use Codeception;
  4. // here you can define custom actions
  5. // all public methods declared in helper class will be available in $I
  6. /**
  7. * Class Unit
  8. * @package Helper
  9. */
  10. class Unit extends Codeception\Module
  11. {
  12. /**
  13. * HOOK: used after configuration is loaded
  14. */
  15. public function _initialize() {
  16. }
  17. /**
  18. * HOOK: on every Actor class initialization
  19. */
  20. public function _cleanup() {
  21. }
  22. /**
  23. * HOOK: before suite
  24. *
  25. * @param array $settings
  26. */
  27. public function _beforeSuite($settings = []) {
  28. }
  29. /**
  30. * HOOK: after suite
  31. **/
  32. public function _afterSuite() {
  33. }
  34. /**
  35. * HOOK: before each step
  36. *
  37. * @param Codeception\Step $step*
  38. */
  39. public function _beforeStep(Codeception\Step $step) {
  40. }
  41. /**
  42. * HOOK: after each step
  43. *
  44. * @param Codeception\Step $step
  45. */
  46. public function _afterStep(Codeception\Step $step) {
  47. }
  48. /**
  49. * HOOK: before each suite
  50. *
  51. * @param Codeception\TestCase $test
  52. */
  53. public function _before(Codeception\TestCase $test) {
  54. }
  55. /**
  56. * HOOK: before each suite
  57. *
  58. * @param Codeception\TestCase $test
  59. */
  60. public function _after(Codeception\TestCase $test) {
  61. }
  62. /**
  63. * HOOK: on fail
  64. *
  65. * @param Codeception\TestCase $test
  66. * @param $fail
  67. */
  68. public function _failed(Codeception\TestCase $test, $fail) {
  69. }
  70. }