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

similar_textTest::testSimilarText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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