You are here

public function DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation in Zircon Profile 8

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

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

Parameters

array $expected:

string $from:

string $to:

File

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

Class

DifferTest

Namespace

SebastianBergmann\Diff

Code

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