You are here

public function DifferTest::testCustomHeaderCanBeUsed in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/diff/tests/DifferTest.php \SebastianBergmann\Diff\DifferTest::testCustomHeaderCanBeUsed()

@covers SebastianBergmann\Diff\Differ::diff

File

vendor/sebastian/diff/tests/DifferTest.php, line 88

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function testCustomHeaderCanBeUsed() {
  $differ = new Differ('CUSTOM HEADER');
  $this
    ->assertEquals("CUSTOM HEADER@@ @@\n-a\n+b\n", $differ
    ->diff('a', 'b'));
}