Code Duplication    Length = 8-8 lines in 4 locations

tests/StrHelperTest.php 4 locations

@@ 14-21 (lines=8) @@
11
 */
12
class StrHelperTest extends \PHPUnit\Framework\TestCase
13
{
14
    public function testContain()
15
    {
16
        $this->assertTrue(StrHelper::contain('qwertyuiop', 'rty'));
17
        $this->assertFalse(StrHelper::contain('qwertyuiop', '123'));
18
        //
19
        $this->assertTrue(StrHelper::contain('qwerTyuiop', 'rty', false));
20
        $this->assertFalse(StrHelper::contain('qwerTyuiop', 'rty'));
21
    }
22
    
23
    public function testStart()
24
    {
@@ 23-30 (lines=8) @@
20
        $this->assertFalse(StrHelper::contain('qwerTyuiop', 'rty'));
21
    }
22
    
23
    public function testStart()
24
    {
25
        $this->assertTrue(StrHelper::start('qwertyuiop', 'qwe'));
26
        $this->assertFalse(StrHelper::start('qwertyuiop', '123'));
27
        //
28
        $this->assertTrue(StrHelper::start('qWertyuiop', 'qwe', false));
29
        $this->assertFalse(StrHelper::start('qWertyuiop', 'qwe'));
30
    }
31
    
32
    public function testEnd()
33
    {
@@ 32-39 (lines=8) @@
29
        $this->assertFalse(StrHelper::start('qWertyuiop', 'qwe'));
30
    }
31
    
32
    public function testEnd()
33
    {
34
        $this->assertTrue(StrHelper::end('qwertyuiop', 'iop'));
35
        $this->assertFalse(StrHelper::end('qwertyuiop', '123'));
36
        //
37
        $this->assertTrue(StrHelper::end('qwertyuioP', 'iop', false));
38
        $this->assertFalse(StrHelper::end('qwertyuioP', 'iop'));
39
    }
40
    
41
    public function testLike()
42
    {
@@ 41-48 (lines=8) @@
38
        $this->assertFalse(StrHelper::end('qwertyuioP', 'iop'));
39
    }
40
    
41
    public function testLike()
42
    {
43
        $this->assertTrue(StrHelper::like('qwertyuiop', '%iop'));
44
        $this->assertFalse(StrHelper::like('qwertyuiop', '%123%'));
45
        //
46
        $this->assertTrue(StrHelper::like('qwertyuioP', '%iop', false));
47
        $this->assertFalse(StrHelper::like('qwertyuioP', '%iop'));
48
    }
49
    
50
    public function testRemovePrefix()
51
    {