Code Duplication    Length = 18-18 lines in 2 locations

exercises/dependency-heaven/solution/vendor/danielstjules/stringy/tests/StringyTest.php 2 locations

@@ 1493-1510 (lines=18) @@
1490
        $this->assertEquals($str, $stringy);
1491
    }
1492
1493
    public function trimLeftProvider()
1494
    {
1495
        return array(
1496
            array('foo   bar  ', '  foo   bar  '),
1497
            array('foo bar', ' foo bar'),
1498
            array('foo bar ', 'foo bar '),
1499
            array("foo bar \n\t", "\n\t foo bar \n\t"),
1500
            array('fòô   bàř  ', '  fòô   bàř  '),
1501
            array('fòô bàř', ' fòô bàř'),
1502
            array('fòô bàř ', 'fòô bàř '),
1503
            array('foo bar', '--foo bar', '-'),
1504
            array('fòô bàř', 'òòfòô bàř', 'ò', 'UTF-8'),
1505
            array("fòô bàř \n\t", "\n\t fòô bàř \n\t", null, 'UTF-8'),
1506
            array('fòô ', ' fòô ', null, 'UTF-8'), // narrow no-break space (U+202F)
1507
            array('fòô  ', '  fòô  ', null, 'UTF-8'), // medium mathematical space (U+205F)
1508
            array('fòô', '           fòô', null, 'UTF-8') // spaces U+2000 to U+200A
1509
        );
1510
    }
1511
1512
    /**
1513
     * @dataProvider trimRightProvider()
@@ 1525-1542 (lines=18) @@
1522
        $this->assertEquals($str, $stringy);
1523
    }
1524
1525
    public function trimRightProvider()
1526
    {
1527
        return array(
1528
            array('  foo   bar', '  foo   bar  '),
1529
            array('foo bar', 'foo bar '),
1530
            array(' foo bar', ' foo bar'),
1531
            array("\n\t foo bar", "\n\t foo bar \n\t"),
1532
            array('  fòô   bàř', '  fòô   bàř  '),
1533
            array('fòô bàř', 'fòô bàř '),
1534
            array(' fòô bàř', ' fòô bàř'),
1535
            array('foo bar', 'foo bar--', '-'),
1536
            array('fòô bàř', 'fòô bàřòò', 'ò', 'UTF-8'),
1537
            array("\n\t fòô bàř", "\n\t fòô bàř \n\t", null, 'UTF-8'),
1538
            array(' fòô', ' fòô ', null, 'UTF-8'), // narrow no-break space (U+202F)
1539
            array('  fòô', '  fòô  ', null, 'UTF-8'), // medium mathematical space (U+205F)
1540
            array('fòô', 'fòô           ', null, 'UTF-8') // spaces U+2000 to U+200A
1541
        );
1542
    }
1543
1544
    /**
1545
     * @dataProvider longestCommonPrefixProvider()