Skip to content

Commit 02ff5f6

Browse files
committed
fixing second stopwatch example in phpunit-bridge docs
1 parent f70883a commit 02ff5f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/phpunit_bridge.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ test::
232232
{
233233
$stopwatch = new Stopwatch();
234234

235-
$stopwatch->start();
235+
$stopwatch->start('event_name');
236236
sleep(10);
237-
$duration = $stopwatch->stop();
237+
$duration = $stopwatch->stop('event_name')->getDuration();
238238

239-
$this->assertEquals(10, $duration);
239+
$this->assertEquals(10000, $duration);
240240
}
241241
}
242242

0 commit comments

Comments
 (0)