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 02ff5f6

Browse filesBrowse files
committed
fixing second stopwatch example in phpunit-bridge docs
1 parent f70883a commit 02ff5f6
Copy full SHA for 02ff5f6

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.