diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 393a13299da..c5b4362853d 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -232,11 +232,11 @@ test:: { $stopwatch = new Stopwatch(); - $stopwatch->start(); + $stopwatch->start('event_name'); sleep(10); - $duration = $stopwatch->stop(); + $duration = $stopwatch->stop('event_name')->getDuration(); - $this->assertEquals(10, $duration); + $this->assertEquals(10000, $duration); } }