Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 832-847 (lines=16) @@
829
        $this->assertEquals($str, $stringy);
830
    }
831
832
    public function startsWithProvider()
833
    {
834
        return array(
835
            array(true, 'foo bars', 'foo bar'),
836
            array(true, 'FOO bars', 'foo bar', false),
837
            array(true, 'FOO bars', 'foo BAR', false),
838
            array(true, 'FÒÔ bàřs', 'fòô bàř', false, 'UTF-8'),
839
            array(true, 'fòô bàřs', 'fòô BÀŘ', false, 'UTF-8'),
840
            array(false, 'foo bar', 'bar'),
841
            array(false, 'foo bar', 'foo bars'),
842
            array(false, 'FOO bar', 'foo bars'),
843
            array(false, 'FOO bars', 'foo BAR'),
844
            array(false, 'FÒÔ bàřs', 'fòô bàř', true, 'UTF-8'),
845
            array(false, 'fòô bàřs', 'fòô BÀŘ', true, 'UTF-8'),
846
        );
847
    }
848
849
    /**
850
     * @dataProvider endsWithProvider()
@@ 862-877 (lines=16) @@
859
        $this->assertEquals($str, $stringy);
860
    }
861
862
    public function endsWithProvider()
863
    {
864
        return array(
865
            array(true, 'foo bars', 'o bars'),
866
            array(true, 'FOO bars', 'o bars', false),
867
            array(true, 'FOO bars', 'o BARs', false),
868
            array(true, 'FÒÔ bàřs', 'ô bàřs', false, 'UTF-8'),
869
            array(true, 'fòô bàřs', 'ô BÀŘs', false, 'UTF-8'),
870
            array(false, 'foo bar', 'foo'),
871
            array(false, 'foo bar', 'foo bars'),
872
            array(false, 'FOO bar', 'foo bars'),
873
            array(false, 'FOO bars', 'foo BARS'),
874
            array(false, 'FÒÔ bàřs', 'fòô bàřs', true, 'UTF-8'),
875
            array(false, 'fòô bàřs', 'fòô BÀŘS', true, 'UTF-8'),
876
        );
877
    }
878
879
    /**
880
     * @dataProvider toBooleanProvider()