We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21bdaf commit b794e3dCopy full SHA for b794e3d
tests/Diff/SimilarityTest.php
@@ -31,6 +31,15 @@ public function testGetSimilarity(): void
31
$this->assertEquals(2 / 3, $similarity->getSimilarity(Similarity::CALC_FASTEST));
32
}
33
34
+ /**
35
+ * Test the DIFF_IGNORE_LINE_BLANK option
36
+ */
37
+ public function testIgnoreLines(): void
38
+ {
39
+ $similarity = new Similarity('AAA', 'AAB', ['ignoreLines' => Similarity::DIFF_IGNORE_LINE_BLANK]);
40
+ $this->assertEquals(2 / 3, $similarity->getSimilarity(Similarity::CALC_FAST));
41
+ }
42
+
43
/**
44
* Test the statistics function
45
*/
0 commit comments