PregExceptionTest.php 660 B

1234567891011121314151617181920212223242526272829303132
  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;
  12. use PhpCsFixer\PregException;
  13. /**
  14. * @author Kuba Werłos <werlos@gmail.com>
  15. *
  16. * @internal
  17. *
  18. * @covers \PhpCsFixer\PregException
  19. */
  20. final class PregExceptionTest extends TestCase
  21. {
  22. public function testIsRuntimeException()
  23. {
  24. $exception = new PregException();
  25. static::assertInstanceOf(\RuntimeException::class, $exception);
  26. }
  27. }