From 02ff5f6d9a3df7c43c7f4a4222b75323e664f516 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Fri, 23 Feb 2018 14:34:29 +0100 Subject: [PATCH] fixing second stopwatch example in phpunit-bridge docs --- components/phpunit_bridge.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }