@@ -34,7 +34,7 @@ protected function setUp(): void
3434 {
3535 parent ::setUp ();
3636
37- $ this ->time = (float ) sprintf ('%.6f ' , microtime (true ));
37+ $ this ->time = (float ) sprintf ('%.6F ' , microtime (true ));
3838 }
3939
4040 protected function tearDown (): void
@@ -63,9 +63,9 @@ private function createDummyDebugbarJson(): void
6363
6464 // create 20 dummy debugbar json files
6565 for ($ i = 0 ; $ i < 20 ; $ i ++) {
66- $ path = str_replace ((string ) $ time , sprintf ('%.6f ' , $ time - self ::STEP ), $ path );
66+ $ path = str_replace ((string ) $ time , sprintf ('%.6F ' , $ time - self ::STEP ), $ path );
6767 file_put_contents ($ path , json_encode ($ dummyData ));
68- $ time = sprintf ('%.6f ' , $ time - self ::STEP );
68+ $ time = sprintf ('%.6F ' , $ time - self ::STEP );
6969 }
7070 }
7171
@@ -76,7 +76,7 @@ public function testSetFiles(): void
7676 // test dir is now populated with json
7777 $ this ->createDummyDebugbarJson ();
7878
79- $ activeRowTime = $ time = sprintf ('%.6f ' , $ time - self ::STEP );
79+ $ activeRowTime = $ time = sprintf ('%.6F ' , $ time - self ::STEP );
8080
8181 $ history = new History ();
8282 $ history ->setFiles ($ time , 20 );
@@ -85,14 +85,14 @@ public function testSetFiles(): void
8585 $ this ->assertNotEmpty ($ history ->display ()['files ' ], 'Dummy Debugbar data is empty ' );
8686
8787 foreach ($ history ->display ()['files ' ] as $ request ) {
88- $ this ->assertSame ($ request ['time ' ], sprintf ('%.6f ' , $ time ));
88+ $ this ->assertSame ($ request ['time ' ], sprintf ('%.6F ' , $ time ));
8989 $ this ->assertSame (
9090 $ request ['datetime ' ],
9191 DateTime::createFromFormat ('U.u ' , $ time )->format ('Y-m-d H:i:s.u ' ),
9292 );
9393 $ this ->assertSame ($ request ['active ' ], ($ time === $ activeRowTime ));
9494
95- $ time = sprintf ('%.6f ' , $ time - self ::STEP );
95+ $ time = sprintf ('%.6F ' , $ time - self ::STEP );
9696 }
9797 }
9898}
0 commit comments