diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 41d71b776c6..2c43a0a0ab6 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -141,9 +141,9 @@ If you have this kind of time-related tests:: { $stopwatch = new Stopwatch(); - $stopwatch->start(); + $stopwatch->start('event_name'); sleep(10); - $duration = $stopwatch->stop(); + $duration = $stopwatch->stop('event_name')->getDuration(); $this->assertEquals(10, $duration); }