From fead6348a29efb592be41f75bfd5df5570b8747c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 28 Apr 2017 18:39:24 +0200 Subject: [PATCH] [PhpUnitBridge] fix Stopwatch API usage --- components/phpunit_bridge.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }