ApplicationTest.php 656 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the PHP CS utility.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\CS\Tests;
  11. use Symfony\CS\Console\Application;
  12. /**
  13. * @author SpacePossum
  14. *
  15. * @internal
  16. */
  17. final class ApplicationTest extends \PHPUnit_Framework_TestCase
  18. {
  19. public function testApplication()
  20. {
  21. $app = new Application();
  22. $this->assertStringMatchesFormat('<info>PHP CS Fixer</info> version <comment>%d.%d%s</comment> by <comment>Fabien Potencier</comment>', $app->getLongVersion());
  23. }
  24. }