@@ -142,10 +142,10 @@ function test_the_on_off_and_cycle_times_default_to_a_reasonable_value()
142142
143143 $ bulletin = new Bulletin ;
144144
145- $ this ->assertEquals ($ thisMorning ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOn );
146- $ this ->assertEquals ($ tonight ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOff );
147- $ this ->assertEquals ($ thisMorning ->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOn );
148- $ this ->assertEquals ($ tonight ->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOff );
145+ $ this ->assertEquals ($ thisMorning ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOn );
146+ $ this ->assertEquals ($ tonight ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOff );
147+ $ this ->assertEquals ($ thisMorning ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOn );
148+ $ this ->assertEquals ($ tonight ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOff );
149149 }
150150
151151 function test_you_can_set_the_bulletins_display_times_individually ()
@@ -158,8 +158,8 @@ function test_you_can_set_the_bulletins_display_times_individually()
158158 ->setDateTimeOn ($ now )
159159 ->setDateTimeOff ($ tomorrow );
160160
161- $ this ->assertEquals ($ now ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOn );
162- $ this ->assertEquals ($ tomorrow ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOff );
161+ $ this ->assertEquals ($ now ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOn );
162+ $ this ->assertEquals ($ tomorrow ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOff );
163163 }
164164
165165 function test_you_can_set_the_bulletins_display_times_together_as_a_set ()
@@ -174,8 +174,8 @@ function test_you_can_set_the_bulletins_display_times_together_as_a_set()
174174 ->setSchedule ($ now ,$ tomorrow );
175175
176176 $ this ->assertTrue ($ bulletin ->IsScheduled );
177- $ this ->assertEquals ($ now ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOn );
178- $ this ->assertEquals ($ tomorrow ->format (\DateTime:: W3C ), $ bulletin ->DateTimeOff );
177+ $ this ->assertEquals ($ now ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOn );
178+ $ this ->assertEquals ($ tomorrow ->format (' Y-m-d\TH:i:s ' ), $ bulletin ->DateTimeOff );
179179 }
180180
181181 function test_you_can_set_the_bulletins_cycle_times_individually ()
@@ -189,8 +189,8 @@ function test_you_can_set_the_bulletins_cycle_times_individually()
189189 ->setCycleTimeOn ($ on )
190190 ->setCycleTimeOff ($ off );
191191
192- $ this ->assertEquals ($ on ->setTime (11 ,00 ,00 )->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOn );
193- $ this ->assertEquals ($ off ->setTime (14 ,00 ,00 )->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOff );
192+ $ this ->assertEquals ($ on ->setTime (11 ,00 ,00 )->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOn );
193+ $ this ->assertEquals ($ off ->setTime (14 ,00 ,00 )->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOff );
194194 }
195195
196196 function test_you_can_set_the_bulletins_cycle_times_together_as_a_set ()
@@ -203,8 +203,8 @@ function test_you_can_set_the_bulletins_cycle_times_together_as_a_set()
203203 $ bulletin
204204 ->setCycleTimes ($ on , $ off );
205205
206- $ this ->assertEquals ($ on ->setTime (11 ,00 ,00 )->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOn );
207- $ this ->assertEquals ($ off ->setTime (14 ,00 ,00 )->format (\DateTime:: W3C ), $ bulletin ->CycleTimeOff );
206+ $ this ->assertEquals ($ on ->setTime (11 ,00 ,00 )->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOn );
207+ $ this ->assertEquals ($ off ->setTime (14 ,00 ,00 )->format (' Y-m-d\TH:i:s ' ), $ bulletin ->CycleTimeOff );
208208 }
209209
210210 function test_you_can_turn_all_days_on_and_off ()
0 commit comments