@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | 7 | Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine'); |
8 | 8 | Mock::generate('Calendar_Second', 'Mock_Calendar_Second'); |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./decorator_test.php'; |
|
7 | +require_once __DIR__.'/./decorator_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfDecoratorTextual. |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | 5 => 'Fri', |
195 | 195 | 6 => 'Sat', |
196 | 196 | ]; |
197 | - $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
197 | + $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
198 | 198 | while ($nShifts-- > 0) { |
199 | 199 | $day = array_shift($weekdayNames); |
200 | 200 | array_push($weekdayNames, $day); |
@@ -71,13 +71,13 @@ |
||
71 | 71 | public function testPrevDay_Array() |
72 | 72 | { |
73 | 73 | $this->assertEqual([ |
74 | - 'year' => 2003, |
|
75 | - 'month' => 10, |
|
76 | - 'day' => 8, |
|
77 | - 'hour' => 0, |
|
78 | - 'minute' => 0, |
|
79 | - 'second' => 0, |
|
80 | - ], $this->cal->prevDay('array')); |
|
74 | + 'year' => 2003, |
|
75 | + 'month' => 10, |
|
76 | + 'day' => 8, |
|
77 | + 'hour' => 0, |
|
78 | + 'minute' => 0, |
|
79 | + 'second' => 0, |
|
80 | + ], $this->cal->prevDay('array')); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function testThisDay() |
@@ -2,10 +2,10 @@ discard block |
||
2 | 2 | // |
3 | 3 | define('CALENDAR_FIRST_DAY_OF_WEEK', 1); //force firstDay = monday |
4 | 4 | |
5 | -require_once __DIR__ . '/simple_include.php'; |
|
6 | -require_once __DIR__ . '/calendar_include.php'; |
|
5 | +require_once __DIR__.'/simple_include.php'; |
|
6 | +require_once __DIR__.'/calendar_include.php'; |
|
7 | 7 | |
8 | -require_once __DIR__ . '/./calendar_test.php'; |
|
8 | +require_once __DIR__.'/./calendar_test.php'; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class TestOfWeek. |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | |
313 | 313 | public function testSelection() |
314 | 314 | { |
315 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
315 | + require_once CALENDAR_ROOT.'Day.php'; |
|
316 | 316 | $selection = [Calendar_Factory::create('Day', 2003, 10, 7)]; |
317 | 317 | $this->cal->build($selection); |
318 | 318 | $i = 1; |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | |
328 | 328 | public function testSelectionCornerCase() |
329 | 329 | { |
330 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
330 | + require_once CALENDAR_ROOT.'Day.php'; |
|
331 | 331 | $selectedDays = [ |
332 | 332 | Calendar_Factory::create('Day', 2003, 12, 29), |
333 | 333 | Calendar_Factory::create('Day', 2003, 12, 30), |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | Calendar_Factory::create('Day', 2004, 01, 03), |
338 | 338 | Calendar_Factory::create('Day', 2004, 01, 04), |
339 | 339 | ]; |
340 | - $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
340 | + $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
341 | 341 | $this->cal->build($selectedDays); |
342 | 342 | while ($Day = $this->cal->fetch()) { |
343 | 343 | $this->assertTrue($Day->isSelected()); |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./decorator_test.php'; |
|
7 | +require_once __DIR__.'/./decorator_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfUtilTextual. |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | 5 => 'Fri', |
217 | 217 | 6 => 'Sat', |
218 | 218 | ]; |
219 | - $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
219 | + $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
220 | 220 | while ($nShifts-- > 0) { |
221 | 221 | $day = array_shift($weekdayNames); |
222 | 222 | array_push($weekdayNames, $day); |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | public function testPrevMonth_Array() |
43 | 43 | { |
44 | 44 | $this->assertEqual([ |
45 | - 'year' => 2002, |
|
46 | - 'month' => 12, |
|
47 | - 'day' => 1, |
|
48 | - 'hour' => 0, |
|
49 | - 'minute' => 0, |
|
50 | - 'second' => 0, |
|
51 | - ], $this->cal->prevMonth('array')); |
|
45 | + 'year' => 2002, |
|
46 | + 'month' => 12, |
|
47 | + 'day' => 1, |
|
48 | + 'hour' => 0, |
|
49 | + 'minute' => 0, |
|
50 | + 'second' => 0, |
|
51 | + ], $this->cal->prevMonth('array')); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | public function testThisMonth() |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | public function testPrevDay_Array() |
70 | 70 | { |
71 | 71 | $this->assertEqual([ |
72 | - 'year' => 2002, |
|
73 | - 'month' => 12, |
|
74 | - 'day' => 31, |
|
75 | - 'hour' => 0, |
|
76 | - 'minute' => 0, |
|
77 | - 'second' => 0, |
|
78 | - ], $this->cal->prevDay('array')); |
|
72 | + 'year' => 2002, |
|
73 | + 'month' => 12, |
|
74 | + 'day' => 31, |
|
75 | + 'hour' => 0, |
|
76 | + 'minute' => 0, |
|
77 | + 'second' => 0, |
|
78 | + ], $this->cal->prevDay('array')); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | public function testThisDay() |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfYear. |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | public function testSelection() |
185 | 185 | { |
186 | - require_once CALENDAR_ROOT . 'Month.php'; |
|
186 | + require_once CALENDAR_ROOT.'Month.php'; |
|
187 | 187 | $selection = [new Calendar_Month(2003, 10)]; |
188 | 188 | $this->cal->build($selection); |
189 | 189 | $i = 1; |
@@ -27,13 +27,13 @@ |
||
27 | 27 | public function testPrevDay_Array() |
28 | 28 | { |
29 | 29 | $this->assertEqual([ |
30 | - 'year' => 2003, |
|
31 | - 'month' => 10, |
|
32 | - 'day' => 24, |
|
33 | - 'hour' => 0, |
|
34 | - 'minute' => 0, |
|
35 | - 'second' => 0, |
|
36 | - ], $this->cal->prevDay('array')); |
|
30 | + 'year' => 2003, |
|
31 | + 'month' => 10, |
|
32 | + 'day' => 24, |
|
33 | + 'hour' => 0, |
|
34 | + 'minute' => 0, |
|
35 | + 'second' => 0, |
|
36 | + ], $this->cal->prevDay('array')); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function testPrevMinute() |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfHour. |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | public function testSelection() |
118 | 118 | { |
119 | - require_once CALENDAR_ROOT . 'Minute.php'; |
|
119 | + require_once CALENDAR_ROOT.'Minute.php'; |
|
120 | 120 | $selection = [new Calendar_Minute(2003, 10, 25, 13, 32)]; |
121 | 121 | $this->cal->build($selection); |
122 | 122 | $i = 0; |
@@ -2,10 +2,10 @@ discard block |
||
2 | 2 | // |
3 | 3 | define('CALENDAR_FIRST_DAY_OF_WEEK', 0); //force firstDay = Sunday |
4 | 4 | |
5 | -require_once __DIR__ . '/simple_include.php'; |
|
6 | -require_once __DIR__ . '/calendar_include.php'; |
|
5 | +require_once __DIR__.'/simple_include.php'; |
|
6 | +require_once __DIR__.'/calendar_include.php'; |
|
7 | 7 | |
8 | -require_once __DIR__ . '/./calendar_test.php'; |
|
8 | +require_once __DIR__.'/./calendar_test.php'; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class TestOfWeek_firstday_0. |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | |
276 | 276 | public function testSelection() |
277 | 277 | { |
278 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
278 | + require_once CALENDAR_ROOT.'Day.php'; |
|
279 | 279 | $selection = [Calendar_Factory::create('Day', 2003, 10, 6)]; |
280 | 280 | $this->cal->build($selection); |
281 | 281 | $i = 1; |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | |
291 | 291 | public function testSelectionCornerCase() |
292 | 292 | { |
293 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
293 | + require_once CALENDAR_ROOT.'Day.php'; |
|
294 | 294 | $selectedDays = [ |
295 | 295 | Calendar_Factory::create('Day', 2003, 12, 28), |
296 | 296 | Calendar_Factory::create('Day', 2003, 12, 29), |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | Calendar_Factory::create('Day', 2004, 01, 02), |
301 | 301 | Calendar_Factory::create('Day', 2004, 01, 03), |
302 | 302 | ]; |
303 | - $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
303 | + $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
304 | 304 | $this->cal->build($selectedDays); |
305 | 305 | while ($Day = $this->cal->fetch()) { |
306 | 306 | $this->assertTrue($Day->isSelected()); |
@@ -71,13 +71,13 @@ |
||
71 | 71 | public function testPrevDay_Array() |
72 | 72 | { |
73 | 73 | $this->assertEqual([ |
74 | - 'year' => 2003, |
|
75 | - 'month' => 10, |
|
76 | - 'day' => 8, |
|
77 | - 'hour' => 0, |
|
78 | - 'minute' => 0, |
|
79 | - 'second' => 0, |
|
80 | - ], $this->cal->prevDay('array')); |
|
74 | + 'year' => 2003, |
|
75 | + 'month' => 10, |
|
76 | + 'day' => 8, |
|
77 | + 'hour' => 0, |
|
78 | + 'minute' => 0, |
|
79 | + 'second' => 0, |
|
80 | + ], $this->cal->prevDay('array')); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function testThisDay() |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfMonth. |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | public function testSelection() |
153 | 153 | { |
154 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
154 | + require_once CALENDAR_ROOT.'Day.php'; |
|
155 | 155 | $selection = [new Calendar_Day(2003, 10, 25)]; |
156 | 156 | $this->cal->build($selection); |
157 | 157 | $i = 1; |
@@ -32,13 +32,13 @@ |
||
32 | 32 | public function testPrevDay_Array() |
33 | 33 | { |
34 | 34 | $this->assertEqual([ |
35 | - 'year' => 2003, |
|
36 | - 'month' => 9, |
|
37 | - 'day' => 30, |
|
38 | - 'hour' => 0, |
|
39 | - 'minute' => 0, |
|
40 | - 'second' => 0, |
|
41 | - ], $this->cal->prevDay('array')); |
|
35 | + 'year' => 2003, |
|
36 | + 'month' => 9, |
|
37 | + 'day' => 30, |
|
38 | + 'hour' => 0, |
|
39 | + 'minute' => 0, |
|
40 | + 'second' => 0, |
|
41 | + ], $this->cal->prevDay('array')); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function testThisDay() |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | |
4 | -require_once __DIR__ . '/simple_include.php'; |
|
5 | -require_once __DIR__ . '/calendar_include.php'; |
|
4 | +require_once __DIR__.'/simple_include.php'; |
|
5 | +require_once __DIR__.'/calendar_include.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfMonthWeekdays. |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | public function testSelection() |
148 | 148 | { |
149 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
149 | + require_once CALENDAR_ROOT.'Day.php'; |
|
150 | 150 | $selection = [new Calendar_Day(2003, 10, 25)]; |
151 | 151 | $this->cal->build($selection); |
152 | 152 | $daysInPrevMonth = (0 == CALENDAR_FIRST_DAY_OF_WEEK) ? 3 : 2; |
@@ -32,13 +32,13 @@ |
||
32 | 32 | public function testPrevDay_Array() |
33 | 33 | { |
34 | 34 | $this->assertEqual([ |
35 | - 'year' => 2003, |
|
36 | - 'month' => 9, |
|
37 | - 'day' => 30, |
|
38 | - 'hour' => 0, |
|
39 | - 'minute' => 0, |
|
40 | - 'second' => 0, |
|
41 | - ], $this->cal->prevDay('array')); |
|
35 | + 'year' => 2003, |
|
36 | + 'month' => 9, |
|
37 | + 'day' => 30, |
|
38 | + 'hour' => 0, |
|
39 | + 'minute' => 0, |
|
40 | + 'second' => 0, |
|
41 | + ], $this->cal->prevDay('array')); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function testThisDay() |