LinterTest.php 828 B

1234567891011121314151617181920212223242526272829303132333435363738
  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\Linter;
  13. use PhpCsFixer\Linter\Linter;
  14. use PhpCsFixer\Linter\LinterInterface;
  15. /**
  16. * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  17. *
  18. * @internal
  19. *
  20. * @covers \PhpCsFixer\Linter\Linter
  21. */
  22. final class LinterTest extends AbstractLinterTestCase
  23. {
  24. public function testIsAsync(): void
  25. {
  26. self::assertSame(!class_exists(\CompileError::class), $this->createLinter()->isAsync());
  27. }
  28. protected function createLinter(): LinterInterface
  29. {
  30. return new Linter();
  31. }
  32. }