{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/198785372","pull_request_review_id":132775002,"id":198785372,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODc4NTM3Mg==","diff_hunk":"@@ -232,6 +232,51 @@ test::\n \n And that's all!\n \n+.. caution::\n+\n+    The ``@group time-sensitive`` annotation is equivalent to ``ClockMock::register(MyTest::class)``,\n+    so if you want to get a time based function mocked into one of the source code you will need to\n+    add it explicitly using ``ClockMock::register(MyClass::class)``. The ``ClockMock::register`` method\n+    only create a mock of the time based functions into the same namespace as your class. So when using\n+    ``time()`` you will use the mock instead of the default one.\n+\n+\n+.. code-block:: php","path":"components/phpunit_bridge.rst","position":13,"original_position":13,"commit_id":"a93b0bec442db8997d4f5e6bfd86a5266c7bee6d","original_commit_id":"a93b0bec442db8997d4f5e6bfd86a5266c7bee6d","user":{"login":"HeahDude","id":10107633,"node_id":"MDQ6VXNlcjEwMTA3NjMz","avatar_url":"https://avatars0.githubusercontent.com/u/10107633?v=4","gravatar_id":"","url":"https://api.github.com/users/HeahDude","html_url":"https://github.com/HeahDude","followers_url":"https://api.github.com/users/HeahDude/followers","following_url":"https://api.github.com/users/HeahDude/following{/other_user}","gists_url":"https://api.github.com/users/HeahDude/gists{/gist_id}","starred_url":"https://api.github.com/users/HeahDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeahDude/subscriptions","organizations_url":"https://api.github.com/users/HeahDude/orgs","repos_url":"https://api.github.com/users/HeahDude/repos","events_url":"https://api.github.com/users/HeahDude/events{/privacy}","received_events_url":"https://api.github.com/users/HeahDude/received_events","type":"User","site_admin":false},"body":"Can be replaced by `::` at the end of line 241 instead of the dot.","created_at":"2018-06-28T09:59:30Z","updated_at":"2018-06-28T10:00:55Z","html_url":"https://github.com/symfony/symfony-docs/pull/8899#discussion_r198785372","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/198785372"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/8899#discussion_r198785372"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899","id":158817732,"node_id":"MDExOlB1bGxSZXF1ZXN0MTU4ODE3NzMy","html_url":"https://github.com/symfony/symfony-docs/pull/8899","diff_url":"https://github.com/symfony/symfony-docs/pull/8899.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/8899.patch","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/8899","number":8899,"state":"open","locked":false,"title":"Add details on how the ClockMock::register works","user":{"login":"moroine","id":4658821,"node_id":"MDQ6VXNlcjQ2NTg4MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4658821?v=4","gravatar_id":"","url":"https://api.github.com/users/moroine","html_url":"https://github.com/moroine","followers_url":"https://api.github.com/users/moroine/followers","following_url":"https://api.github.com/users/moroine/following{/other_user}","gists_url":"https://api.github.com/users/moroine/gists{/gist_id}","starred_url":"https://api.github.com/users/moroine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroine/subscriptions","organizations_url":"https://api.github.com/users/moroine/orgs","repos_url":"https://api.github.com/users/moroine/repos","events_url":"https://api.github.com/users/moroine/events{/privacy}","received_events_url":"https://api.github.com/users/moroine/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI got some trouble mocking using the ClockMock feature. After dig into the code, I figure myself how it works ! \r\n\r\nSo I decided to do a PR, but I'm not sure of the formatting,","created_at":"2017-12-18T02:09:52Z","updated_at":"2018-06-28T10:00:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82cd296d2824b8f22b61dc760b1e64b28802f2e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":342713082,"node_id":"MDU6TGFiZWwzNDI3MTMwODI=","url":"https://api.github.com/repos/symfony/symfony-docs/labels/PHPUnitBridge","name":"PHPUnitBridge","color":"dddddd","default":false},{"id":390692613,"node_id":"MDU6TGFiZWwzOTA2OTI2MTM=","url":"https://api.github.com/repos/symfony/symfony-docs/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/8899/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/a93b0bec442db8997d4f5e6bfd86a5266c7bee6d","head":{"label":"moroine:patch-1","ref":"patch-1","sha":"a93b0bec442db8997d4f5e6bfd86a5266c7bee6d","user":{"login":"moroine","id":4658821,"node_id":"MDQ6VXNlcjQ2NTg4MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4658821?v=4","gravatar_id":"","url":"https://api.github.com/users/moroine","html_url":"https://github.com/moroine","followers_url":"https://api.github.com/users/moroine/followers","following_url":"https://api.github.com/users/moroine/following{/other_user}","gists_url":"https://api.github.com/users/moroine/gists{/gist_id}","starred_url":"https://api.github.com/users/moroine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroine/subscriptions","organizations_url":"https://api.github.com/users/moroine/orgs","repos_url":"https://api.github.com/users/moroine/repos","events_url":"https://api.github.com/users/moroine/events{/privacy}","received_events_url":"https://api.github.com/users/moroine/received_events","type":"User","site_admin":false},"repo":{"id":114583475,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ1ODM0NzU=","name":"symfony-docs","full_name":"moroine/symfony-docs","owner":{"login":"moroine","id":4658821,"node_id":"MDQ6VXNlcjQ2NTg4MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4658821?v=4","gravatar_id":"","url":"https://api.github.com/users/moroine","html_url":"https://github.com/moroine","followers_url":"https://api.github.com/users/moroine/followers","following_url":"https://api.github.com/users/moroine/following{/other_user}","gists_url":"https://api.github.com/users/moroine/gists{/gist_id}","starred_url":"https://api.github.com/users/moroine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroine/subscriptions","organizations_url":"https://api.github.com/users/moroine/orgs","repos_url":"https://api.github.com/users/moroine/repos","events_url":"https://api.github.com/users/moroine/events{/privacy}","received_events_url":"https://api.github.com/users/moroine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moroine/symfony-docs","description":"The Symfony documentation","fork":true,"url":"https://api.github.com/repos/moroine/symfony-docs","forks_url":"https://api.github.com/repos/moroine/symfony-docs/forks","keys_url":"https://api.github.com/repos/moroine/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moroine/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moroine/symfony-docs/teams","hooks_url":"https://api.github.com/repos/moroine/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/moroine/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/moroine/symfony-docs/events","assignees_url":"https://api.github.com/repos/moroine/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/moroine/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/moroine/symfony-docs/tags","blobs_url":"https://api.github.com/repos/moroine/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moroine/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moroine/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/moroine/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moroine/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/moroine/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/moroine/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/moroine/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/moroine/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/moroine/symfony-docs/subscription","commits_url":"https://api.github.com/repos/moroine/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/moroine/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/moroine/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/moroine/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/moroine/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/moroine/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moroine/symfony-docs/merges","archive_url":"https://api.github.com/repos/moroine/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moroine/symfony-docs/downloads","issues_url":"https://api.github.com/repos/moroine/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/moroine/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/moroine/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/moroine/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moroine/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/moroine/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/moroine/symfony-docs/deployments","created_at":"2017-12-18T01:42:27Z","updated_at":"2017-12-18T01:42:32Z","pushed_at":"2018-06-28T09:37:32Z","git_url":"git://github.com/moroine/symfony-docs.git","ssh_url":"git@github.com:moroine/symfony-docs.git","clone_url":"https://github.com/moroine/symfony-docs.git","svn_url":"https://github.com/moroine/symfony-docs","homepage":"http://symfony.com/doc","size":41894,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:2.8","ref":"2.8","sha":"4bbe654cb096c8d0ec9fdcf921297781571bab74","user":{"login":"symfony","id":143937,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MzkzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/143937?v=4","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":521583,"node_id":"MDEwOlJlcG9zaXRvcnk1MjE1ODM=","name":"symfony-docs","full_name":"symfony/symfony-docs","owner":{"login":"symfony","id":143937,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MzkzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/143937?v=4","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony-docs","description":"The Symfony documentation","fork":false,"url":"https://api.github.com/repos/symfony/symfony-docs","forks_url":"https://api.github.com/repos/symfony/symfony-docs/forks","keys_url":"https://api.github.com/repos/symfony/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-docs/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-docs/events","assignees_url":"https://api.github.com/repos/symfony/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-docs/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-docs/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-docs/merges","archive_url":"https://api.github.com/repos/symfony/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-docs/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony-docs/deployments","created_at":"2010-02-17T08:43:51Z","updated_at":"2018-06-28T07:07:54Z","pushed_at":"2018-06-28T09:37:35Z","git_url":"git://github.com/symfony/symfony-docs.git","ssh_url":"git@github.com:symfony/symfony-docs.git","clone_url":"https://github.com/symfony/symfony-docs.git","svn_url":"https://github.com/symfony/symfony-docs","homepage":"https://symfony.com/doc","size":47938,"stargazers_count":1448,"watchers_count":1448,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3582,"mirror_url":null,"archived":false,"open_issues_count":327,"license":null,"forks":3582,"open_issues":327,"watchers":1448,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/8899"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/8899"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/8899/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8899/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-docs/statuses/a93b0bec442db8997d4f5e6bfd86a5266c7bee6d"}},"author_association":"NONE"}}
{"actor":{"display_login":"HeahDude"}}