Skip to content

Commit 2bbf893

Browse files
Cleanup
1 parent ddefb43 commit 2bbf893

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

tests/DifferTest.php

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected function setUp()
6969
* @param string $to
7070
* @dataProvider arrayProvider
7171
* @covers SebastianBergmann\Diff\Differ::diffToArray
72+
* @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation
7273
*/
7374
public function testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation(array $expected, $from, $to)
7475
{
@@ -81,6 +82,7 @@ public function testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsI
8182
* @param string $to
8283
* @dataProvider textProvider
8384
* @covers SebastianBergmann\Diff\Differ::diff
85+
* @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation
8486
*/
8587
public function testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation($expected, $from, $to)
8688
{
@@ -93,6 +95,7 @@ public function testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsIm
9395
* @param string $to
9496
* @dataProvider arrayProvider
9597
* @covers SebastianBergmann\Diff\Differ::diffToArray
98+
* @covers SebastianBergmann\Diff\LCS\MemoryEfficientImplementation
9699
*/
97100
public function testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation(array $expected, $from, $to)
98101
{
@@ -105,12 +108,26 @@ public function testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLc
105108
* @param string $to
106109
* @dataProvider textProvider
107110
* @covers SebastianBergmann\Diff\Differ::diff
111+
* @covers SebastianBergmann\Diff\LCS\MemoryEfficientImplementation
108112
*/
109113
public function testTextRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation($expected, $from, $to)
110114
{
111115
$this->assertEquals($expected, $this->differ->diff($from, $to, new MemoryEfficientImplementation));
112116
}
113117

118+
/**
119+
* @covers SebastianBergmann\Diff\Differ::diff
120+
*/
121+
public function testCustomHeaderCanBeUsed()
122+
{
123+
$differ = new Differ('CUSTOM HEADER');
124+
125+
$this->assertEquals(
126+
"CUSTOM HEADER@@ @@\n-a\n+b\n",
127+
$differ->diff('a', 'b')
128+
);
129+
}
130+
114131
public function arrayProvider()
115132
{
116133
return array(
@@ -226,17 +243,4 @@ public function textProvider()
226243
),
227244
);
228245
}
229-
230-
/**
231-
* @covers SebastianBergmann\Diff\Differ::diff
232-
*/
233-
public function testCustomHeaderCanBeUsed()
234-
{
235-
$differ = new Differ('CUSTOM HEADER');
236-
237-
$this->assertEquals(
238-
"CUSTOM HEADER@@ @@\n-a\n+b\n",
239-
$differ->diff('a', 'b')
240-
);
241-
}
242246
}

0 commit comments

Comments
 (0)