Code Duplication    Length = 20-20 lines in 3 locations

risoluto/lib/vendor_test/Risoluto/DateTest/DateTest4GenMonth.php 3 locations

@@ 65-84 (lines=20) @@
62
     *
63
     * GenMonth()の挙動をテストする(引数1つ)
64
     */
65
    public function test_GenMonth_Args1()
66
    {
67
        $want = [
68
            '' => '',
69
            '01' => '01',
70
            '02' => '02',
71
            '03' => '03',
72
            '04' => '04',
73
            '05' => '05',
74
            '06' => '06',
75
            '07' => '07',
76
            '08' => '08',
77
            '09' => '09',
78
            '10' => '10',
79
            '11' => '11',
80
            '12' => '12',
81
        ];
82
83
        $this->assertEquals( Date::genMonth( true ), $want );
84
    }
85
86
    /**
87
     * test_GenMonth_Args2()
@@ 91-110 (lines=20) @@
88
     *
89
     * GenMonth()の挙動をテストする(引数2つ)
90
     */
91
    public function test_GenMonth_Args2()
92
    {
93
        $want = [
94
            '--' => '',
95
            '01' => '01',
96
            '02' => '02',
97
            '03' => '03',
98
            '04' => '04',
99
            '05' => '05',
100
            '06' => '06',
101
            '07' => '07',
102
            '08' => '08',
103
            '09' => '09',
104
            '10' => '10',
105
            '11' => '11',
106
            '12' => '12',
107
        ];
108
109
        $this->assertEquals( Date::genMonth( true, '--' ), $want );
110
    }
111
112
    /**
113
     * test_GenMonth_Args3()
@@ 117-136 (lines=20) @@
114
     *
115
     * GenMonth()の挙動をテストする(引数3つ)
116
     */
117
    public function test_GenMonth_Args3()
118
    {
119
        $want = [
120
            '--' => '--',
121
            '01' => '01',
122
            '02' => '02',
123
            '03' => '03',
124
            '04' => '04',
125
            '05' => '05',
126
            '06' => '06',
127
            '07' => '07',
128
            '08' => '08',
129
            '09' => '09',
130
            '10' => '10',
131
            '11' => '11',
132
            '12' => '12',
133
        ];
134
135
        $this->assertEquals( Date::genMonth( true, '--', '--' ), $want );
136
    }
137
}