Skip to content

Update phpunit_bridge.rst #8314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Update phpunit_bridge.rst #8314

wants to merge 2 commits into from

Conversation

temenb
Copy link
Contributor

@temenb temenb commented Aug 29, 2017

$stopwatch->stop('event_name')->getDuration() returns time in milliseconds, so original test will fail in any way.. but not only because of "However, depending on the load of the server or the processes running on your local machine, the $duration could for example be 10.000023s instead of 10s."

$stopwatch->stop('event_name')->getDuration() returns time in milliseconds, so original test will fail in any way.. but not only because of "However, depending on the load of the server or the processes running on your local machine, the $duration could for example be 10.000023s instead of 10s."
Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! Thanks for fixing this. I added a commit to your PR to fix a minor syntax issue that I saw while reviewing this.

@HeahDude HeahDude added this to the 3.3 milestone Aug 31, 2017
@xabbuh xabbuh modified the milestones: 2.8, 3.3 Sep 1, 2017
@xabbuh
Copy link
Member

xabbuh commented Sep 1, 2017

Thank you @temenb.

xabbuh added a commit that referenced this pull request Sep 1, 2017
This PR was submitted for the 3.3 branch but it was merged into the 2.8 branch instead (closes #8314).

Discussion
----------

Update phpunit_bridge.rst

$stopwatch->stop('event_name')->getDuration() returns time in milliseconds, so original test will fail in any way.. but not only because of "However, depending on the load of the server or the processes running on your local machine, the $duration could for example be 10.000023s instead of 10s."

Commits
-------

47460b5 Fixed a minor syntax issue
afbbfd5 Update phpunit_bridge.rst
@xabbuh xabbuh closed this Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants