@@ -33,20 +33,20 @@ public function test_laboratory_can_fetch_report_for_experiment_with_no_journals
3333 $ this ->assertInstanceOf (Report::class, $ r );
3434 $ this ->assertEquals ('foo ' , $ r ->getControl ()->getValue ());
3535 $ this ->assertEquals ('bar ' , $ r ->getTrial ('trial ' )->getValue ());
36- $ this ->assertInternalType ( ' float ' , $ r ->getControl ()->getStartTime ());
37- $ this ->assertInternalType ( ' float ' , $ r ->getControl ()->getEndTime ());
38- $ this ->assertInternalType ( ' float ' , $ r ->getControl ()->getTime ());
39- $ this ->assertInternalType ( ' float ' , $ r ->getTrial ('trial ' )->getStartTime ());
40- $ this ->assertInternalType ( ' float ' , $ r ->getTrial ('trial ' )->getEndTime ());
41- $ this ->assertInternalType ( ' float ' , $ r ->getTrial ('trial ' )->getTime ());
42- $ this ->assertInternalType ( ' integer ' , $ r ->getControl ()->getStartMemory ());
43- $ this ->assertInternalType ( ' integer ' , $ r ->getControl ()->getEndMemory ());
44- $ this ->assertInternalType ( ' integer ' , $ r ->getControl ()->getMemory ());
45- $ this ->assertInternalType ( ' integer ' , $ r ->getTrial ('trial ' )->getStartMemory ());
46- $ this ->assertInternalType ( ' integer ' , $ r ->getTrial ('trial ' )->getEndMemory ());
47- $ this ->assertInternalType ( ' integer ' , $ r ->getTrial ('trial ' )->getMemory ());
48- $ this ->assertInternalType ( ' null ' , $ r ->getControl ()->getException ());
49- $ this ->assertInternalType ( ' null ' , $ r ->getTrial ('trial ' )->getException ());
36+ $ this ->assertIsFloat ( $ r ->getControl ()->getStartTime ());
37+ $ this ->assertIsFloat ( $ r ->getControl ()->getEndTime ());
38+ $ this ->assertIsFloat ( $ r ->getControl ()->getTime ());
39+ $ this ->assertIsFloat ( $ r ->getTrial ('trial ' )->getStartTime ());
40+ $ this ->assertIsFloat ( $ r ->getTrial ('trial ' )->getEndTime ());
41+ $ this ->assertIsFloat ( $ r ->getTrial ('trial ' )->getTime ());
42+ $ this ->assertIsInt ( $ r ->getControl ()->getStartMemory ());
43+ $ this ->assertIsInt ( $ r ->getControl ()->getEndMemory ());
44+ $ this ->assertIsInt ( $ r ->getControl ()->getMemory ());
45+ $ this ->assertIsInt ( $ r ->getTrial ('trial ' )->getStartMemory ());
46+ $ this ->assertIsInt ( $ r ->getTrial ('trial ' )->getEndMemory ());
47+ $ this ->assertIsInt ( $ r ->getTrial ('trial ' )->getMemory ());
48+ $ this ->assertNull ( $ r ->getControl ()->getException ());
49+ $ this ->assertNull ( $ r ->getTrial ('trial ' )->getException ());
5050 $ this ->assertFalse ($ r ->getTrial ('trial ' )->isMatch ());
5151 }
5252
@@ -70,7 +70,7 @@ public function test_that_exceptions_are_swallowed_within_the_trial()
7070 ->report ();
7171
7272 $ this ->assertInstanceOf (Report::class, $ r );
73- $ this ->assertInternalType ( ' null ' , $ r ->getControl ()->getException ());
73+ $ this ->assertNull ( $ r ->getControl ()->getException ());
7474 $ this ->assertInstanceOf (Exception::class, $ r ->getTrial ('trial ' )->getException ());
7575 }
7676
0 commit comments