TestCase.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of PHP CS Fixer.
  5. *
  6. * (c) Fabien Potencier <fabien@symfony.com>
  7. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  8. *
  9. * This source file is subject to the MIT license that is bundled
  10. * with this source code in the file LICENSE.
  11. */
  12. namespace PhpCsFixer\Tests;
  13. use PHPUnit\Framework\TestCase as BaseTestCase;
  14. use PHPUnitGoodPractices\Polyfill\PolyfillTrait;
  15. use PHPUnitGoodPractices\Traits\ExpectationViaCodeOverAnnotationTrait;
  16. use PHPUnitGoodPractices\Traits\ExpectOverSetExceptionTrait;
  17. use PHPUnitGoodPractices\Traits\IdentityOverEqualityTrait;
  18. use PHPUnitGoodPractices\Traits\ProphecyOverMockObjectTrait;
  19. use PHPUnitGoodPractices\Traits\ProphesizeOnlyInterfaceTrait;
  20. use Prophecy\PhpUnit\ProphecyTrait;
  21. use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
  22. /**
  23. * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  24. *
  25. * @internal
  26. */
  27. abstract class InterimTestCase extends BaseTestCase
  28. {
  29. use ProphecyTrait;
  30. }
  31. /**
  32. * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  33. *
  34. * @internal
  35. */
  36. abstract class TestCase extends InterimTestCase
  37. {
  38. use ExpectationViaCodeOverAnnotationTrait;
  39. use ExpectDeprecationTrait;
  40. use ExpectOverSetExceptionTrait;
  41. use IdentityOverEqualityTrait;
  42. use PolyfillTrait;
  43. use ProphecyOverMockObjectTrait;
  44. use ProphesizeOnlyInterfaceTrait;
  45. }