Skip to content

Commit 7ec484c

Browse files
committed
Document PhpUnit Similarity Test
1 parent 34a032f commit 7ec484c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Diff/SimilarityTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,24 @@
55
use jblond\Diff\Similarity;
66
use PHPUnit\Framework\TestCase;
77

8+
/**
9+
* PHPUnit Test for the Similarity class of PHP DiffLib.
10+
*
11+
* PHP version 7.2 or greater
12+
*
13+
* @package Tests\Diff
14+
* @author Ferry Cools <[email protected]>
15+
* @copyright (c) 2020 Ferry Cools
16+
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
17+
* @version 2.2.1
18+
* @link https://github.com/JBlond/php-diff
19+
*/
820
class SimilarityTest extends TestCase
921
{
1022

23+
/**
24+
* Test the similarity ratio between two sequences with different methods.
25+
*/
1126
public function testGetSimilarity()
1227
{
1328
$similarity = new Similarity(range(1, 10), range(1, 5));

0 commit comments

Comments
 (0)