@@ -13,20 +13,20 @@ public function testTimerStoppedValueRetention() {
13
13
$ stopwatch = new Stopwatch ();
14
14
$ stopwatch ->stop ();
15
15
$ time_1 = $ stopwatch ->read ();
16
- $ this ->assertInternalType ( ' float ' , $ time_1 );
16
+ $ this ->assertIsFloat ( $ time_1 );
17
17
sleep (20 );
18
18
$ time_2 = $ stopwatch ->read ();
19
- $ this ->assertInternalType ( ' float ' , $ time_2 );
19
+ $ this ->assertIsFloat ( $ time_2 );
20
20
$ this ->assertSame ($ time_1 , $ time_2 );
21
21
}
22
22
23
23
public function testTimerContiniuous () {
24
24
$ stopwatch = new Stopwatch ();
25
25
$ time_1 = $ stopwatch ->read ();
26
- $ this ->assertInternalType ( ' float ' , $ time_1 );
26
+ $ this ->assertIsFloat ( $ time_1 );
27
27
sleep (20 );
28
28
$ time_2 = $ stopwatch ->read ();
29
- $ this ->assertInternalType ( ' float ' , $ time_2 );
29
+ $ this ->assertIsFloat ( $ time_2 );
30
30
$ this ->assertNotSame ($ time_1 , $ time_2 );
31
31
}
32
32
@@ -36,7 +36,7 @@ public function testTimerMultipleStartCalls() {
36
36
$ time_1 = $ stopwatch ->read ();
37
37
sleep (20 );
38
38
$ time_2 = $ stopwatch ->read ();
39
- $ this ->assertInternalType ( ' float ' , $ time_2 );
39
+ $ this ->assertIsFloat ( $ time_2 );
40
40
$ this ->assertNotSame ($ time_1 , $ time_2 );
41
41
}
42
42
}
0 commit comments