SetUpTearDownTraitForV5.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\PhpUnit\Legacy;
  11. /**
  12. * @internal
  13. */
  14. trait SetUpTearDownTraitForV5
  15. {
  16. /**
  17. * @return void
  18. */
  19. public static function setUpBeforeClass()
  20. {
  21. self::doSetUpBeforeClass();
  22. }
  23. /**
  24. * @return void
  25. */
  26. public static function tearDownAfterClass()
  27. {
  28. self::doTearDownAfterClass();
  29. }
  30. /**
  31. * @return void
  32. */
  33. protected function setUp()
  34. {
  35. self::doSetUp();
  36. }
  37. /**
  38. * @return void
  39. */
  40. protected function tearDown()
  41. {
  42. self::doTearDown();
  43. }
  44. private static function doSetUpBeforeClass()
  45. {
  46. parent::setUpBeforeClass();
  47. }
  48. private static function doTearDownAfterClass()
  49. {
  50. parent::tearDownAfterClass();
  51. }
  52. private function doSetUp()
  53. {
  54. parent::setUp();
  55. }
  56. private function doTearDown()
  57. {
  58. parent::tearDown();
  59. }
  60. }