Code Duplication    Length = 10-10 lines in 6 locations

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

@@ 328-337 (lines=10) @@
325
        $this->assertEquals($expected, $result);
326
    }
327
328
    public function upperCaseFirstProvider()
329
    {
330
        return array(
331
            array('Test', 'Test'),
332
            array('Test', 'test'),
333
            array('1a', '1a'),
334
            array('Σ test', 'σ test', 'UTF-8'),
335
            array(' σ test', ' σ test', 'UTF-8')
336
        );
337
    }
338
339
    /**
340
     * @dataProvider lowerCaseFirstProvider()
@@ 351-360 (lines=10) @@
348
        $this->assertEquals($str, $stringy);
349
    }
350
351
    public function lowerCaseFirstProvider()
352
    {
353
        return array(
354
            array('test', 'Test'),
355
            array('test', 'test'),
356
            array('1a', '1a'),
357
            array('σ test', 'Σ test', 'UTF-8'),
358
            array(' Σ test', ' Σ test', 'UTF-8')
359
        );
360
    }
361
362
    /**
363
     * @dataProvider camelizeProvider()
@@ 971-980 (lines=10) @@
968
        $this->assertEquals($str, $stringy);
969
    }
970
971
    public function toLowerCaseProvider()
972
    {
973
        return array(
974
            array('foo bar', 'FOO BAR'),
975
            array(' foo_bar ', ' FOO_bar '),
976
            array('fòô bàř', 'FÒÔ BÀŘ', 'UTF-8'),
977
            array(' fòô_bàř ', ' FÒÔ_bàř ', 'UTF-8'),
978
            array('αυτοκίνητο', 'ΑΥΤΟΚΊΝΗΤΟ', 'UTF-8'),
979
        );
980
    }
981
982
    /**
983
     * @dataProvider toTitleCaseProvider()
@@ 994-1003 (lines=10) @@
991
        $this->assertEquals($str, $stringy);
992
    }
993
994
    public function toTitleCaseProvider()
995
    {
996
        return array(
997
            array('Foo Bar', 'foo bar'),
998
            array(' Foo_Bar ', ' foo_bar '),
999
            array('Fòô Bàř', 'fòô bàř', 'UTF-8'),
1000
            array(' Fòô_Bàř ', ' fòô_bàř ', 'UTF-8'),
1001
            array('Αυτοκίνητο Αυτοκίνητο', 'αυτοκίνητο αυτοκίνητο', 'UTF-8'),
1002
        );
1003
    }
1004
1005
    /**
1006
     * @dataProvider toUpperCaseProvider()
@@ 1017-1026 (lines=10) @@
1014
        $this->assertEquals($str, $stringy);
1015
    }
1016
1017
    public function toUpperCaseProvider()
1018
    {
1019
        return array(
1020
            array('FOO BAR', 'foo bar'),
1021
            array(' FOO_BAR ', ' FOO_bar '),
1022
            array('FÒÔ BÀŘ', 'fòô bàř', 'UTF-8'),
1023
            array(' FÒÔ_BÀŘ ', ' FÒÔ_bàř ', 'UTF-8'),
1024
            array('ΑΥΤΟΚΊΝΗΤΟ', 'αυτοκίνητο', 'UTF-8'),
1025
        );
1026
    }
1027
1028
    /**
1029
     * @dataProvider slugifyProvider()
@@ 1382-1391 (lines=10) @@
1379
        $this->assertEquals($str, $stringy);
1380
    }
1381
1382
    public function reverseProvider()
1383
    {
1384
        return array(
1385
            array('', ''),
1386
            array('raboof', 'foobar'),
1387
            array('řàbôòf', 'fòôbàř', 'UTF-8'),
1388
            array('řàb ôòf', 'fòô bàř', 'UTF-8'),
1389
            array('∂∆ ˚åß', 'ßå˚ ∆∂', 'UTF-8')
1390
        );
1391
    }
1392
1393
    /**
1394
     * @dataProvider repeatProvider()