NullDifferTest.php 722 B

12345678910111213141516171819202122232425262728293031323334
  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\Differ;
  12. use PhpCsFixer\Differ\NullDiffer;
  13. /**
  14. * @author Andreas Möller <am@localheinz.com>
  15. *
  16. * @internal
  17. *
  18. * @covers \PhpCsFixer\Differ\NullDiffer
  19. */
  20. final class NullDifferTest extends AbstractDifferTestCase
  21. {
  22. public function testDiffReturnsEmptyString()
  23. {
  24. $diff = '';
  25. $differ = new NullDiffer();
  26. $this->assertSame($diff, $differ->diff($this->oldCode(), $this->newCode()));
  27. }
  28. }