@@ -193,24 +193,24 @@ public function testStartTimeWhenStartedLater()
193193 public function testHumanRepresentation ()
194194 {
195195 $ event = new StopwatchEvent (microtime (true ) * 1000 );
196- $ this ->assertEquals ('default: 0.00 MiB - 0 ms ' , (string ) $ event );
196+ $ this ->assertEquals ('default/default : 0.00 MiB - 0 ms ' , (string ) $ event );
197197 $ event ->start ();
198198 $ event ->stop ();
199199 $ this ->assertEquals (1 , preg_match ('/default: [0-9\.]+ MiB - [0-9]+ ms/ ' , (string ) $ event ));
200200
201201 $ event = new StopwatchEvent (microtime (true ) * 1000 , 'foo ' );
202- $ this ->assertEquals ('default: 0.00 MiB - 0 ms ' , (string ) $ event );
202+ $ this ->assertEquals ('foo/ default: 0.00 MiB - 0 ms ' , (string ) $ event );
203203
204204 $ event = new StopwatchEvent (microtime (true ) * 1000 , 'foo ' , false , 'name ' );
205- $ this ->assertEquals ('name: 0.00 MiB - 0 ms ' , (string ) $ event );
205+ $ this ->assertEquals ('foo/ name: 0.00 MiB - 0 ms ' , (string ) $ event );
206206 }
207207
208208 public function testGetName ()
209209 {
210210 $ event = new StopwatchEvent (microtime (true ) * 1000 );
211211 $ this ->assertEquals ('default ' , $ event ->getName ());
212212
213- $ event = new StopwatchEvent (microtime (true ) * 1000 , 'cat ' , false , 'test ' );
214- $ this ->assertEquals ('test ' , $ event ->getName ());
213+ $ event = new StopwatchEvent (microtime (true ) * 1000 , 'cat ' , false , 'name ' );
214+ $ this ->assertEquals ('name ' , $ event ->getName ());
215215 }
216216}
0 commit comments