You are here

public function DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation in Zircon Profile 8

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

@dataProvider textProvider @covers SebastianBergmann\Diff\Differ::diff @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation

Parameters

string $expected:

string $from:

string $to:

File

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

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation($expected, $from, $to) {
  $this
    ->assertEquals($expected, $this->differ
    ->diff($from, $to, new TimeEfficientImplementation()));
}