IntegrationCaseTest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * This file is part of PHP CS Fixer.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace PhpCsFixer\Tests\Test;
  12. use PhpCsFixer\RuleSet;
  13. use PhpCsFixer\Test\IntegrationCase as LegacyIntegrationCase;
  14. use PHPUnit\Framework\TestCase;
  15. /**
  16. * @internal
  17. *
  18. * @covers \PhpCsFixer\Test\IntegrationCase
  19. */
  20. final class IntegrationCaseTest extends TestCase
  21. {
  22. /**
  23. * @group legacy
  24. * @expectedDeprecation The "PhpCsFixer\Test\IntegrationCase::shouldCheckPriority" method is deprecated. You should stop using it, as it will be removed in 3.0 version.
  25. */
  26. public function testLegacyShouldCheckPriority()
  27. {
  28. $integrationCase = new LegacyIntegrationCase(
  29. 'foo',
  30. 'Foo',
  31. array(),
  32. array(),
  33. array(),
  34. new RuleSet(),
  35. 'Bar',
  36. 'Baz'
  37. );
  38. $integrationCase->shouldCheckPriority();
  39. }
  40. }