This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * ValidateTest4IsBetween |
||
4 | * |
||
5 | * Validate::IsBetween用テストケース |
||
6 | * |
||
7 | * @package risoluto |
||
8 | * @author Risoluto Developers |
||
9 | * @license http://opensource.org/licenses/bsd-license.php new BSD license |
||
10 | * @copyright (C) 2008-2015 Risoluto Developers / All Rights Reserved. |
||
11 | */ |
||
12 | |||
13 | //------------------------------------------------------// |
||
14 | // 名前空間の定義 |
||
15 | //------------------------------------------------------// |
||
16 | namespace Risoluto; |
||
17 | |||
18 | //------------------------------------------------------// |
||
19 | // テストクラス定義 |
||
20 | //------------------------------------------------------// |
||
21 | class ValidateTest4IsBetween extends \PHPUnit_Framework_TestCase |
||
22 | { |
||
23 | //------------------------------------------------------// |
||
24 | // テストメソッド定義 |
||
25 | //------------------------------------------------------// |
||
26 | /** |
||
27 | * setUp() |
||
28 | * |
||
29 | * テストに必要な準備を実施 |
||
30 | */ |
||
31 | protected function setUp() |
||
32 | { |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * test_IsBetween_InRangePart1() |
||
37 | * |
||
38 | * IsLeapYear()の挙動をテストする(範囲内:全て同値) |
||
39 | */ |
||
40 | View Code Duplication | public function test_IsBetween_InRangePart1() |
|
0 ignored issues
–
show
|
|||
41 | { |
||
42 | $test = '0'; |
||
43 | $low = '0'; |
||
44 | $high = '0'; |
||
45 | |||
46 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * test_IsBetween_InRangePart2() |
||
51 | * |
||
52 | * IsLeapYear()の挙動をテストする(範囲内:下限値と同値) |
||
53 | */ |
||
54 | View Code Duplication | public function test_IsBetween_InRangePart2() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
55 | { |
||
56 | $test = '1'; |
||
57 | $low = '1'; |
||
58 | $high = '9'; |
||
59 | |||
60 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * test_IsBetween_InRangePart3() |
||
65 | * |
||
66 | * IsLeapYear()の挙動をテストする(範囲内:上限値と同値) |
||
67 | */ |
||
68 | View Code Duplication | public function test_IsBetween_InRangePart3() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
69 | { |
||
70 | $test = '9'; |
||
71 | $low = '1'; |
||
72 | $high = '9'; |
||
73 | |||
74 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
75 | } |
||
76 | |||
77 | /** |
||
78 | * test_IsBetween_InRangePart4() |
||
79 | * |
||
80 | * IsLeapYear()の挙動をテストする(範囲内:下限値と同値、負数) |
||
81 | */ |
||
82 | public function test_IsBetween_InRangePart4() |
||
83 | { |
||
84 | $test = '-9'; |
||
85 | $low = '-9'; |
||
86 | $high = '-2'; |
||
87 | |||
88 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * test_IsBetween_InRangePart5() |
||
93 | * |
||
94 | * IsLeapYear()の挙動をテストする(範囲内:上限値と同値、負数) |
||
95 | */ |
||
96 | public function test_IsBetween_InRangePart5() |
||
97 | { |
||
98 | $test = '-2'; |
||
99 | $low = '-9'; |
||
100 | $high = '-2'; |
||
101 | |||
102 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
103 | } |
||
104 | |||
105 | /** |
||
106 | * test_IsBetween_InRangePart6() |
||
107 | * |
||
108 | * IsLeapYear()の挙動をテストする(範囲内:下限値と同値、小数) |
||
109 | */ |
||
110 | View Code Duplication | public function test_IsBetween_InRangePart6() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
111 | { |
||
112 | $test = '1.0'; |
||
113 | $low = '1.0'; |
||
114 | $high = '9.0'; |
||
115 | |||
116 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * test_IsBetween_InRangePart7() |
||
121 | * |
||
122 | * IsLeapYear()の挙動をテストする(範囲内:上限値と同値、小数) |
||
123 | */ |
||
124 | View Code Duplication | public function test_IsBetween_InRangePart7() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
125 | { |
||
126 | $test = '9.0'; |
||
127 | $low = '1.0'; |
||
128 | $high = '9.0'; |
||
129 | |||
130 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * test_IsBetween_InRangePart8() |
||
135 | * |
||
136 | * IsLeapYear()の挙動をテストする(範囲内:下限値と同値、小数) |
||
137 | */ |
||
138 | View Code Duplication | public function test_IsBetween_InRangePart8() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
139 | { |
||
140 | $test = '-9.0'; |
||
141 | $low = '-9.0'; |
||
142 | $high = '-2.0'; |
||
143 | |||
144 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
145 | } |
||
146 | |||
147 | /** |
||
148 | * test_IsBetween_InRangePart9() |
||
149 | * |
||
150 | * IsLeapYear()の挙動をテストする(範囲内:上限値と同値、小数) |
||
151 | */ |
||
152 | View Code Duplication | public function test_IsBetween_InRangePart9() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
153 | { |
||
154 | $test = '-2.0'; |
||
155 | $low = '-9.0'; |
||
156 | $high = '-2.0'; |
||
157 | |||
158 | $this->assertTrue( Validate::isBetween( $test, $low, $high ) ); |
||
159 | } |
||
160 | |||
161 | /** |
||
162 | * test_IsBetween_OutRangePart1() |
||
163 | * |
||
164 | * IsLeapYear()の挙動をテストする(範囲外:下限値より下) |
||
165 | */ |
||
166 | View Code Duplication | public function test_IsBetween_OutRangePart1() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
167 | { |
||
168 | $test = '0'; |
||
169 | $low = '1'; |
||
170 | $high = '9'; |
||
171 | |||
172 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
173 | } |
||
174 | |||
175 | /** |
||
176 | * test_IsBetween_OutRangePart2() |
||
177 | * |
||
178 | * IsLeapYear()の挙動をテストする(範囲外:上限値より上) |
||
179 | */ |
||
180 | View Code Duplication | public function test_IsBetween_OutRangePart2() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
181 | { |
||
182 | $test = '10'; |
||
183 | $low = '1'; |
||
184 | $high = '9'; |
||
185 | |||
186 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
187 | } |
||
188 | |||
189 | /** |
||
190 | * test_IsBetween_OutRangePart3() |
||
191 | * |
||
192 | * IsLeapYear()の挙動をテストする(範囲外:下限値より下、負数) |
||
193 | */ |
||
194 | View Code Duplication | public function test_IsBetween_OutRangePart3() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
195 | { |
||
196 | $test = '-10'; |
||
197 | $low = '-9'; |
||
198 | $high = '-2'; |
||
199 | |||
200 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
201 | } |
||
202 | |||
203 | /** |
||
204 | * test_IsBetween_OutRangePart4() |
||
205 | * |
||
206 | * IsLeapYear()の挙動をテストする(範囲外:上限値より上、負数) |
||
207 | */ |
||
208 | View Code Duplication | public function test_IsBetween_OutRangePart4() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
209 | { |
||
210 | $test = '-1'; |
||
211 | $low = '-9'; |
||
212 | $high = '-2'; |
||
213 | |||
214 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
215 | } |
||
216 | |||
217 | /** |
||
218 | * test_IsBetween_OutRangePart5() |
||
219 | * |
||
220 | * IsLeapYear()の挙動をテストする(範囲外:下限値より下、小数) |
||
221 | */ |
||
222 | View Code Duplication | public function test_IsBetween_OutRangePart5() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
223 | { |
||
224 | $test = '0.9'; |
||
225 | $low = '1.0'; |
||
226 | $high = '9.0'; |
||
227 | |||
228 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
229 | } |
||
230 | |||
231 | /** |
||
232 | * test_IsBetween_OutRangePart6() |
||
233 | * |
||
234 | * IsLeapYear()の挙動をテストする(範囲外:上限値より上、小数) |
||
235 | */ |
||
236 | View Code Duplication | public function test_IsBetween_OutRangePart6() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
237 | { |
||
238 | $test = '9.1'; |
||
239 | $low = '1.0'; |
||
240 | $high = '9.0'; |
||
241 | |||
242 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
243 | } |
||
244 | |||
245 | /** |
||
246 | * test_IsBetween_OutRangePart7() |
||
247 | * |
||
248 | * IsLeapYear()の挙動をテストする(範囲外:下限値より下、負数、小数) |
||
249 | */ |
||
250 | View Code Duplication | public function test_IsBetween_OutRangePart7() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
251 | { |
||
252 | $test = '-9.1'; |
||
253 | $low = '-9.0'; |
||
254 | $high = '-2.0'; |
||
255 | |||
256 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * test_IsBetween_OutRangePart8() |
||
261 | * |
||
262 | * IsLeapYear()の挙動をテストする(範囲外:上限値より上、負数、小数) |
||
263 | */ |
||
264 | View Code Duplication | public function test_IsBetween_OutRangePart8() |
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
|
|||
265 | { |
||
266 | $test = '-1.9'; |
||
267 | $low = '-9.0'; |
||
268 | $high = '-2.0'; |
||
269 | |||
270 | $this->assertFalse( Validate::isBetween( $test, $low, $high ) ); |
||
271 | } |
||
272 | } |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.