Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 750-761 (lines=12) @@
747
        $this->assertEquals($str, $stringy);
748
    }
749
750
    public function padLeftProvider()
751
    {
752
        return array(
753
            array('  foo bar', 'foo bar', 9),
754
            array('_*foo bar', 'foo bar', 9, '_*'),
755
            array('_*_foo bar', 'foo bar', 10, '_*'),
756
            array('  fòô bàř', 'fòô bàř', 9, ' ', 'UTF-8'),
757
            array('¬øfòô bàř', 'fòô bàř', 9, '¬ø', 'UTF-8'),
758
            array('¬ø¬fòô bàř', 'fòô bàř', 10, '¬ø', 'UTF-8'),
759
            array('¬ø¬øfòô bàř', 'fòô bàř', 11, '¬ø', 'UTF-8'),
760
        );
761
    }
762
763
    /**
764
     * @dataProvider padRightProvider()
@@ 776-787 (lines=12) @@
773
        $this->assertEquals($str, $stringy);
774
    }
775
776
    public function padRightProvider()
777
    {
778
        return array(
779
            array('foo bar  ', 'foo bar', 9),
780
            array('foo bar_*', 'foo bar', 9, '_*'),
781
            array('foo bar_*_', 'foo bar', 10, '_*'),
782
            array('fòô bàř  ', 'fòô bàř', 9, ' ', 'UTF-8'),
783
            array('fòô bàř¬ø', 'fòô bàř', 9, '¬ø', 'UTF-8'),
784
            array('fòô bàř¬ø¬', 'fòô bàř', 10, '¬ø', 'UTF-8'),
785
            array('fòô bàř¬ø¬ø', 'fòô bàř', 11, '¬ø', 'UTF-8'),
786
        );
787
    }
788
789
    /**
790
     * @dataProvider padBothProvider()