SetUpTearDownTraitForV8.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 SetUpTearDownTraitForV8
  15. {
  16. public static function setUpBeforeClass(): void
  17. {
  18. self::doSetUpBeforeClass();
  19. }
  20. public static function tearDownAfterClass(): void
  21. {
  22. self::doTearDownAfterClass();
  23. }
  24. protected function setUp(): void
  25. {
  26. self::doSetUp();
  27. }
  28. protected function tearDown(): void
  29. {
  30. self::doTearDown();
  31. }
  32. private static function doSetUpBeforeClass(): void
  33. {
  34. parent::setUpBeforeClass();
  35. }
  36. private static function doTearDownAfterClass(): void
  37. {
  38. parent::tearDownAfterClass();
  39. }
  40. private function doSetUp(): void
  41. {
  42. parent::setUp();
  43. }
  44. private function doTearDown(): void
  45. {
  46. parent::tearDown();
  47. }
  48. }