Unit.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. /**
  19. * HOOK: on every Actor class initialization
  20. */
  21. public function _cleanup()
  22. {
  23. }
  24. /**
  25. * HOOK: before suite
  26. *
  27. * @param array $settings
  28. */
  29. public function _beforeSuite($settings = [])
  30. {
  31. }
  32. /**
  33. * HOOK: after suite
  34. **/
  35. public function _afterSuite()
  36. {
  37. }
  38. /**
  39. * HOOK: before each step
  40. *
  41. * @param Codeception\Step $step*
  42. */
  43. public function _beforeStep(Codeception\Step $step)
  44. {
  45. }
  46. /**
  47. * HOOK: after each step
  48. *
  49. * @param Codeception\Step $step
  50. */
  51. public function _afterStep(Codeception\Step $step)
  52. {
  53. }
  54. /**
  55. * HOOK: before each suite
  56. *
  57. * @param Codeception\TestCase $test
  58. */
  59. public function _before(Codeception\TestCase $test)
  60. {
  61. }
  62. /**
  63. * HOOK: before each suite
  64. *
  65. * @param Codeception\TestCase $test
  66. */
  67. public function _after(Codeception\TestCase $test)
  68. {
  69. }
  70. /**
  71. * HOOK: on fail
  72. *
  73. * @param Codeception\TestCase $test
  74. * @param $fail
  75. */
  76. public function _failed(Codeception\TestCase $test, $fail)
  77. {
  78. }
  79. }