Completed
Push — master ( adeed7...b5464f )
by Akpé Aurelle Emmanuel Moïse
02:31
created

similar_textTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSimilarText() 0 7 1
1
<?php
2
namespace Ezama\tests{
3
    require dirname(__DIR__).DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'similar_text.php';
4
5
6
    use PHPUnit\Framework\TestCase;
7
8
    class similar_textTest extends TestCase
9
    {
10
        public function testSimilarText()
11
        {
12
            $this->assertTrue(100.0===similarText('qwerty', 'ytrewq'));
13
            $this->assertTrue(similarText('qwerty', 'ytreq')>=80);
14
            $this->assertTrue(similarButNotEqual('qwerty', 'ytrewq'));
15
            $this->assertTrue(areAnagrams('qwerty', 'ytrewq'));
16
            $this->assertTrue(0.0===similarText('qwerty', ';lkjhg'));
17
        }
18
    }
19
}
20