@@ -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); |
@@ -37,13 +37,13 @@ discard block |
||
37 | 37 | public function testPrevYear_Array() |
38 | 38 | { |
39 | 39 | $this->assertEqual(array( |
40 | - 'year' => 2002, |
|
41 | - 'month' => 1, |
|
42 | - 'day' => 1, |
|
43 | - 'hour' => 0, |
|
44 | - 'minute' => 0, |
|
45 | - 'second' => 0, |
|
46 | - ), $this->cal->prevYear('array')); |
|
40 | + 'year' => 2002, |
|
41 | + 'month' => 1, |
|
42 | + 'day' => 1, |
|
43 | + 'hour' => 0, |
|
44 | + 'minute' => 0, |
|
45 | + 'second' => 0, |
|
46 | + ), $this->cal->prevYear('array')); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | public function testThisYear() |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | public function testPrevMonth_Array() |
65 | 65 | { |
66 | 66 | $this->assertEqual(array( |
67 | - 'year' => 2003, |
|
68 | - 'month' => 9, |
|
69 | - 'day' => 1, |
|
70 | - 'hour' => 0, |
|
71 | - 'minute' => 0, |
|
72 | - 'second' => 0, |
|
73 | - ), $this->cal->prevMonth('array')); |
|
67 | + 'year' => 2003, |
|
68 | + 'month' => 9, |
|
69 | + 'day' => 1, |
|
70 | + 'hour' => 0, |
|
71 | + 'minute' => 0, |
|
72 | + 'second' => 0, |
|
73 | + ), $this->cal->prevMonth('array')); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function testThisMonth() |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | public function testPrevDay_Array() |
92 | 92 | { |
93 | 93 | $this->assertEqual(array( |
94 | - 'year' => 2003, |
|
95 | - 'month' => 10, |
|
96 | - 'day' => 24, |
|
97 | - 'hour' => 0, |
|
98 | - 'minute' => 0, |
|
99 | - 'second' => 0, |
|
100 | - ), $this->cal->prevDay('array')); |
|
94 | + 'year' => 2003, |
|
95 | + 'month' => 10, |
|
96 | + 'day' => 24, |
|
97 | + 'hour' => 0, |
|
98 | + 'minute' => 0, |
|
99 | + 'second' => 0, |
|
100 | + ), $this->cal->prevDay('array')); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | public function testThisDay() |
@@ -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 | /** |
8 | 8 | * Class TestOfCalendar. |
@@ -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 | /** |
8 | 8 | * Class CalendarEngineTests. |
@@ -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 | /** |
8 | 8 | * Class CalendarTabularTests. |
@@ -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_Day', 'Mock_Calendar_Day'); |
8 | 8 | Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine'); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // |
3 | 3 | if (!defined('SIMPLE_TEST')) { |
4 | - define('SIMPLE_TEST', dirname(dirname(dirname(__DIR__))) . '/simpletest/'); |
|
4 | + define('SIMPLE_TEST', dirname(dirname(dirname(__DIR__))).'/simpletest/'); |
|
5 | 5 | } |
6 | 6 | |
7 | -require_once SIMPLE_TEST . 'unit_tester.php'; |
|
8 | -require_once SIMPLE_TEST . 'reporter.php'; |
|
9 | -require_once SIMPLE_TEST . 'mock_objects.php'; |
|
7 | +require_once SIMPLE_TEST.'unit_tester.php'; |
|
8 | +require_once SIMPLE_TEST.'reporter.php'; |
|
9 | +require_once SIMPLE_TEST.'mock_objects.php'; |
@@ -71,13 +71,13 @@ |
||
71 | 71 | public function testPrevDay_Array() |
72 | 72 | { |
73 | 73 | $this->assertEqual(array( |
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 = array(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 = array( |
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,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 | /** |
8 | 8 | * Class TestOfValidationError. |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | public function testPrevMonth_Array() |
43 | 43 | { |
44 | 44 | $this->assertEqual(array( |
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(array( |
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 = array(new Calendar_Month(2003, 10)); |
188 | 188 | $this->cal->build($selection); |
189 | 189 | $i = 1; |