Skip to content

Commit

Permalink
Document PhpUnit Similarity Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiLive authored and DigiLive committed Nov 19, 2020
1 parent 34a032f commit 7ec484c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Diff/SimilarityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@
use jblond\Diff\Similarity;
use PHPUnit\Framework\TestCase;

/**
* PHPUnit Test for the Similarity class of PHP DiffLib.
*
* PHP version 7.2 or greater
*
* @package Tests\Diff
* @author Ferry Cools <[email protected]>
* @copyright (c) 2020 Ferry Cools
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
* @version 2.2.1
* @link https://github.com/JBlond/php-diff
*/
class SimilarityTest extends TestCase
{

/**
* Test the similarity ratio between two sequences with different methods.
*/
public function testGetSimilarity()
{
$similarity = new Similarity(range(1, 10), range(1, 5));
Expand Down

0 comments on commit 7ec484c

Please sign in to comment.