Completed
Push — master ( d44352...76d45c )
by Michael
08:21
created
class/pear/Calendar/tests/calendar_test.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
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), $this->cal->prevYear('array'));
40
+                                'year'   => 2002,
41
+                                'month'  => 1,
42
+                                'day'    => 1,
43
+                                'hour'   => 0,
44
+                                'minute' => 0,
45
+                                'second' => 0), $this->cal->prevYear('array'));
46 46
     }
47 47
 
48 48
     public function testThisYear()
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
     public function testPrevMonth_Array()
64 64
     {
65 65
         $this->assertEqual(array(
66
-                               'year'   => 2003,
67
-                               'month'  => 9,
68
-                               'day'    => 1,
69
-                               'hour'   => 0,
70
-                               'minute' => 0,
71
-                               'second' => 0), $this->cal->prevMonth('array'));
66
+                                'year'   => 2003,
67
+                                'month'  => 9,
68
+                                'day'    => 1,
69
+                                'hour'   => 0,
70
+                                'minute' => 0,
71
+                                'second' => 0), $this->cal->prevMonth('array'));
72 72
     }
73 73
 
74 74
     public function testThisMonth()
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
     public function testPrevDay_Array()
90 90
     {
91 91
         $this->assertEqual(array(
92
-                               'year'   => 2003,
93
-                               'month'  => 10,
94
-                               'day'    => 24,
95
-                               'hour'   => 0,
96
-                               'minute' => 0,
97
-                               'second' => 0), $this->cal->prevDay('array'));
92
+                                'year'   => 2003,
93
+                                'month'  => 10,
94
+                                'day'    => 24,
95
+                                'hour'   => 0,
96
+                                'minute' => 0,
97
+                                'second' => 0), $this->cal->prevDay('array'));
98 98
     }
99 99
 
100 100
     public function testThisDay()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/calendar_include.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
1 1
 <?php
2 2
 // $Id: calendar_include.php 1511 2011-09-01 20:56:07Z jjdai $
3 3
 if (!@include 'Calendar/Calendar.php') {
4
-    @define('CALENDAR_ROOT','../');
4
+    @define('CALENDAR_ROOT', '../');
5 5
 }
6
-require_once(CALENDAR_ROOT . 'Year.php');
7
-require_once(CALENDAR_ROOT . 'Month.php');
8
-require_once(CALENDAR_ROOT . 'Day.php');
9
-require_once(CALENDAR_ROOT . 'Week.php');
10
-require_once(CALENDAR_ROOT . 'Hour.php');
11
-require_once(CALENDAR_ROOT . 'Minute.php');
12
-require_once(CALENDAR_ROOT . 'Second.php');
13
-require_once(CALENDAR_ROOT . 'Month.php');
14
-require_once(CALENDAR_ROOT . 'Decorator.php');
15
-require_once(CALENDAR_ROOT . 'Month/Weekdays.php');
16
-require_once(CALENDAR_ROOT . 'Month/Weeks.php');
17
-require_once(CALENDAR_ROOT . 'Validator.php');
18
-require_once(CALENDAR_ROOT . 'Engine/Interface.php');
19
-require_once(CALENDAR_ROOT . 'Engine/UnixTs.php');
20
-require_once(CALENDAR_ROOT . 'Engine/PearDate.php');
21
-require_once(CALENDAR_ROOT . 'Table/Helper.php');
22
-require_once(CALENDAR_ROOT . 'Decorator/Textual.php');
23
-require_once(CALENDAR_ROOT . 'Decorator/Uri.php');
24
-require_once(CALENDAR_ROOT . 'Decorator/Weekday.php');
25
-require_once(CALENDAR_ROOT . 'Decorator/Wrapper.php');
26
-require_once(CALENDAR_ROOT . 'Util/Uri.php');
27
-require_once(CALENDAR_ROOT . 'Util/Textual.php');
6
+require_once(CALENDAR_ROOT.'Year.php');
7
+require_once(CALENDAR_ROOT.'Month.php');
8
+require_once(CALENDAR_ROOT.'Day.php');
9
+require_once(CALENDAR_ROOT.'Week.php');
10
+require_once(CALENDAR_ROOT.'Hour.php');
11
+require_once(CALENDAR_ROOT.'Minute.php');
12
+require_once(CALENDAR_ROOT.'Second.php');
13
+require_once(CALENDAR_ROOT.'Month.php');
14
+require_once(CALENDAR_ROOT.'Decorator.php');
15
+require_once(CALENDAR_ROOT.'Month/Weekdays.php');
16
+require_once(CALENDAR_ROOT.'Month/Weeks.php');
17
+require_once(CALENDAR_ROOT.'Validator.php');
18
+require_once(CALENDAR_ROOT.'Engine/Interface.php');
19
+require_once(CALENDAR_ROOT.'Engine/UnixTs.php');
20
+require_once(CALENDAR_ROOT.'Engine/PearDate.php');
21
+require_once(CALENDAR_ROOT.'Table/Helper.php');
22
+require_once(CALENDAR_ROOT.'Decorator/Textual.php');
23
+require_once(CALENDAR_ROOT.'Decorator/Uri.php');
24
+require_once(CALENDAR_ROOT.'Decorator/Weekday.php');
25
+require_once(CALENDAR_ROOT.'Decorator/Wrapper.php');
26
+require_once(CALENDAR_ROOT.'Util/Uri.php');
27
+require_once(CALENDAR_ROOT.'Util/Textual.php');
Please login to merge, or discard this patch.
class/pear/Calendar/tests/calendar_engine_tests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 // $Id: calendar_engine_tests.php 1511 2011-09-01 20:56:07Z jjdai $
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
Please login to merge, or discard this patch.
class/pear/Calendar/tests/minute_test.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual(array(
30
-                               'year'   => 2003,
31
-                               'month'  => 10,
32
-                               'day'    => 24,
33
-                               'hour'   => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0), $this->cal->prevDay('array'));
30
+                                'year'   => 2003,
31
+                                'month'  => 10,
32
+                                'day'    => 24,
33
+                                'hour'   => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0), $this->cal->prevDay('array'));
36 36
     }
37 37
 
38 38
     public function testPrevSecond()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
     public function testSelection()
112 112
     {
113
-        require_once(CALENDAR_ROOT . 'Second.php');
113
+        require_once(CALENDAR_ROOT.'Second.php');
114 114
         $selection = array(new Calendar_Second(2003, 10, 25, 13, 32, 43));
115 115
         $this->cal->build($selection);
116 116
         $i = 0;
Please login to merge, or discard this patch.
class/pear/Calendar/tests/second_test.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual(array(
30
-                               'year'   => 2003,
31
-                               'month'  => 10,
32
-                               'day'    => 24,
33
-                               'hour'   => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0), $this->cal->prevDay('array'));
30
+                                'year'   => 2003,
31
+                                'month'  => 10,
32
+                                'day'    => 24,
33
+                                'hour'   => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0), $this->cal->prevDay('array'));
36 36
     }
37 37
 }
38 38
 
Please login to merge, or discard this patch.
class/pear/Calendar/tests/simple_include.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 // $Id: simple_include.php 1511 2011-09-01 20:56:07Z jjdai $
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');
Please login to merge, or discard this patch.
class/pear/Calendar/tests/month_test.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
     public function testPrevDay_Array()
38 38
     {
39 39
         $this->assertEqual(array(
40
-                               'year'   => 2003,
41
-                               'month'  => 9,
42
-                               'day'    => 30,
43
-                               'hour'   => 0,
44
-                               'minute' => 0,
45
-                               'second' => 0), $this->cal->prevDay('array'));
40
+                                'year'   => 2003,
41
+                                'month'  => 9,
42
+                                'day'    => 30,
43
+                                'hour'   => 0,
44
+                                'minute' => 0,
45
+                                'second' => 0), $this->cal->prevDay('array'));
46 46
     }
47 47
 
48 48
     public function testThisDay()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
 
151 151
     public function testSelection()
152 152
     {
153
-        require_once(CALENDAR_ROOT . 'Day.php');
153
+        require_once(CALENDAR_ROOT.'Day.php');
154 154
         $selection = array(new Calendar_Day(2003, 10, 25));
155 155
         $this->cal->build($selection);
156 156
         $i = 1;
Please login to merge, or discard this patch.
class/pear/Calendar/tests/week_firstday_0_test.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
     public function testPrevDay_Array()
35 35
     {
36 36
         $this->assertEqual(array(
37
-                               'year'   => 2003,
38
-                               'month'  => 10,
39
-                               'day'    => 8,
40
-                               'hour'   => 0,
41
-                               'minute' => 0,
42
-                               'second' => 0), $this->cal->prevDay('array'));
37
+                                'year'   => 2003,
38
+                                'month'  => 10,
39
+                                'day'    => 8,
40
+                                'hour'   => 0,
41
+                                'minute' => 0,
42
+                                'second' => 0), $this->cal->prevDay('array'));
43 43
     }
44 44
 
45 45
     public function testThisDay()
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 
272 272
     public function testSelection()
273 273
     {
274
-        require_once(CALENDAR_ROOT . 'Day.php');
274
+        require_once(CALENDAR_ROOT.'Day.php');
275 275
         $selection = array(Calendar_Factory::create('Day', 2003, 10, 6));
276 276
         $this->cal->build($selection);
277 277
         $i = 1;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
     public function testSelectionCornerCase()
288 288
     {
289
-        require_once(CALENDAR_ROOT . 'Day.php');
289
+        require_once(CALENDAR_ROOT.'Day.php');
290 290
         $selectedDays = array(
291 291
             Calendar_Factory::create('Day', 2003, 12, 28),
292 292
             Calendar_Factory::create('Day', 2003, 12, 29),
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
             Calendar_Factory::create('Day', 2004, 01, 01),
296 296
             Calendar_Factory::create('Day', 2004, 01, 02),
297 297
             Calendar_Factory::create('Day', 2004, 01, 03));
298
-        $this->cal    = Calendar_Factory::create('Week', 2003, 12, 31, 0);
298
+        $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0);
299 299
         $this->cal->build($selectedDays);
300 300
         while ($Day = $this->cal->fetch()) {
301 301
             $this->assertTrue($Day->isSelected());
Please login to merge, or discard this patch.
class/pear/Calendar/tests/month_weeks_test.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     public function testPrevDay_Array()
33 33
     {
34 34
         $this->assertEqual(array(
35
-                               'year'   => 2003,
36
-                               'month'  => 9,
37
-                               'day'    => 30,
38
-                               'hour'   => 0,
39
-                               'minute' => 0,
40
-                               'second' => 0), $this->cal->prevDay('array'));
35
+                                'year'   => 2003,
36
+                                'month'  => 9,
37
+                                'day'    => 30,
38
+                                'hour'   => 0,
39
+                                'minute' => 0,
40
+                                'second' => 0), $this->cal->prevDay('array'));
41 41
     }
42 42
 
43 43
     public function testThisDay()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
     */
147 147
     public function testSelection()
148 148
     {
149
-        include_once CALENDAR_ROOT . 'Week.php';
149
+        include_once CALENDAR_ROOT.'Week.php';
150 150
         $selection = array(new Calendar_Week(2003, 10, 12));
151 151
         $this->cal->build($selection);
152 152
         $i        = 1;
Please login to merge, or discard this patch.