Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d3e3c1

Browse filesBrowse 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
Copy full SHA for 6d3e3c1

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎components/phpunit_bridge.rst

Copy file name to clipboardExpand all lines: components/phpunit_bridge.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.