@@ -277,7 +277,7 @@ public function testCastInteger()
277277 $ entity = $ this ->getCastEntity ();
278278
279279 $ entity ->first = 3.1 ;
280- $ this ->assertInternalType ( ' integer ' , $ entity ->first );
280+ $ this ->assertIsInt ( $ entity ->first );
281281 $ this ->assertEquals (3 , $ entity ->first );
282282
283283 $ entity ->first = 3.6 ;
@@ -289,11 +289,11 @@ public function testCastFloat()
289289 $ entity = $ this ->getCastEntity ();
290290
291291 $ entity ->second = 3 ;
292- $ this ->assertInternalType ( ' float ' , $ entity ->second );
292+ $ this ->assertIsFloat ( $ entity ->second );
293293 $ this ->assertEquals (3.0 , $ entity ->second );
294294
295295 $ entity ->second = '3.6 ' ;
296- $ this ->assertInternalType ( ' float ' , $ entity ->second );
296+ $ this ->assertIsFloat ( $ entity ->second );
297297 $ this ->assertEquals (3.6 , $ entity ->second );
298298 }
299299
@@ -302,11 +302,11 @@ public function testCastDouble()
302302 $ entity = $ this ->getCastEntity ();
303303
304304 $ entity ->third = 3 ;
305- $ this ->assertInternalType ( ' double ' , $ entity ->third );
305+ $ this ->assertIsFloat ( $ entity ->third );
306306 $ this ->assertSame (3.0 , $ entity ->third );
307307
308308 $ entity ->third = '3.6 ' ;
309- $ this ->assertInternalType ( ' double ' , $ entity ->third );
309+ $ this ->assertIsFloat ( $ entity ->third );
310310 $ this ->assertSame (3.6 , $ entity ->third );
311311 }
312312
@@ -315,7 +315,7 @@ public function testCastString()
315315 $ entity = $ this ->getCastEntity ();
316316
317317 $ entity ->fourth = 3.1415 ;
318- $ this ->assertInternalType ( ' string ' , $ entity ->fourth );
318+ $ this ->assertIsString ( $ entity ->fourth );
319319 $ this ->assertSame ('3.1415 ' , $ entity ->fourth );
320320 }
321321
@@ -324,11 +324,11 @@ public function testCastBoolean()
324324 $ entity = $ this ->getCastEntity ();
325325
326326 $ entity ->fifth = 1 ;
327- $ this ->assertInternalType ( ' bool ' , $ entity ->fifth );
327+ $ this ->assertIsBool ( $ entity ->fifth );
328328 $ this ->assertTrue ($ entity ->fifth );
329329
330330 $ entity ->fifth = 0 ;
331- $ this ->assertInternalType ( ' bool ' , $ entity ->fifth );
331+ $ this ->assertIsBool ( $ entity ->fifth );
332332 $ this ->assertFalse ($ entity ->fifth );
333333 }
334334
@@ -339,7 +339,7 @@ public function testCastObject()
339339 $ data = ['foo ' => 'bar ' ];
340340
341341 $ entity ->sixth = $ data ;
342- $ this ->assertInternalType ( ' object ' , $ entity ->sixth );
342+ $ this ->assertIsObject ( $ entity ->sixth );
343343 $ this ->assertEquals ((object ) $ data , $ entity ->sixth );
344344 }
345345
@@ -359,7 +359,7 @@ public function testCastTimestamp()
359359 $ date = 'March 12, 2017 ' ;
360360
361361 $ entity ->ninth = $ date ;
362- $ this ->assertInternalType ( ' integer ' , $ entity ->ninth );
362+ $ this ->assertIsInt ( $ entity ->ninth );
363363 $ this ->assertEquals (strtotime ($ date ), $ entity ->ninth );
364364 }
365365
0 commit comments