You are here

public function DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation in Zircon Profile 8

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

@dataProvider arrayProvider @covers SebastianBergmann\Diff\Differ::diffToArray @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation

Parameters

array $expected:

string $from:

string $to:

File

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

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

public function testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation(array $expected, $from, $to) {
  $this
    ->assertEquals($expected, $this->differ
    ->diffToArray($from, $to, new TimeEfficientImplementation()));
}