@@ -174,7 +174,7 @@ public function testDateMutationFromTimestamp()
174
174
$ time = $ entity ->created_at ;
175
175
176
176
$ this ->assertInstanceOf (Time::class, $ time );
177
- $ this ->assertEquals (date ('Y-m-d H:i:s ' , $ stamp ), $ time ->format ('Y-m-d H:i:s ' ));
177
+ $ this ->assertCloseEnoughString (date ('Y-m-d H:i:s ' , $ stamp ), $ time ->format ('Y-m-d H:i:s ' ));
178
178
}
179
179
180
180
public function testDateMutationFromDatetime ()
@@ -186,7 +186,7 @@ public function testDateMutationFromDatetime()
186
186
$ time = $ entity ->created_at ;
187
187
188
188
$ this ->assertInstanceOf (Time::class, $ time );
189
- $ this ->assertEquals ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
189
+ $ this ->assertCloseEnoughString ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
190
190
}
191
191
192
192
public function testDateMutationFromTime ()
@@ -198,7 +198,7 @@ public function testDateMutationFromTime()
198
198
$ time = $ entity ->created_at ;
199
199
200
200
$ this ->assertInstanceOf (Time::class, $ time );
201
- $ this ->assertEquals ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
201
+ $ this ->assertCloseEnoughString ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
202
202
}
203
203
204
204
public function testDateMutationStringToTime ()
@@ -223,7 +223,7 @@ public function testDateMutationTimestampToTime()
223
223
$ time = $ this ->getPrivateProperty ($ entity , 'created_at ' );
224
224
225
225
$ this ->assertInstanceOf (Time::class, $ time );
226
- $ this ->assertEquals (date ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
226
+ $ this ->assertCloseEnoughString (date ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
227
227
}
228
228
229
229
public function testDateMutationDatetimeToTime ()
@@ -236,7 +236,7 @@ public function testDateMutationDatetimeToTime()
236
236
$ time = $ this ->getPrivateProperty ($ entity , 'created_at ' );
237
237
238
238
$ this ->assertInstanceOf (Time::class, $ time );
239
- $ this ->assertEquals ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
239
+ $ this ->assertCloseEnoughString ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
240
240
}
241
241
242
242
public function testDateMutationTimeToTime ()
@@ -249,7 +249,7 @@ public function testDateMutationTimeToTime()
249
249
$ time = $ this ->getPrivateProperty ($ entity , 'created_at ' );
250
250
251
251
$ this ->assertInstanceOf (Time::class, $ time );
252
- $ this ->assertEquals ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
252
+ $ this ->assertCloseEnoughString ($ dt ->format ('Y-m-d H:i:s ' ), $ time ->format ('Y-m-d H:i:s ' ));
253
253
}
254
254
255
255
//--------------------------------------------------------------------
0 commit comments