Skip to content

Commit 6d3e3c1

Browse files
committed
minor #9318 [PHPUnit Bridge] fixing second stopwatch example (chr-hertel)
This PR was merged into the 2.8 branch. Discussion ---------- [PHPUnit Bridge] fixing second stopwatch example follow up to #7856 Commits ------- 02ff5f6 fixing second stopwatch example in phpunit-bridge docs
2 parents f70883a + 02ff5f6 commit 6d3e3c1

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)