{"action":"created","comment":{"url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments/48795779","id":48795779,"diff_hunk":"@@ -113,3 +113,79 @@ withType\n            ->exists()\n    ;\n \n+\n+.. _with-message:\n+\n+withMessage\n+===========\n+\n+``withMessage`` vérifie le contenu du message de l'erreur levée.\n+\n+\n+.. code-block:: php\n+\n+   <?php\n+   $this\n+       ->when(\n+           function() {\n+               trigger_error('message');\n+           }\n+       )\n+       ->error()\n+           ->withMessage(\"message\")\n+           ->exists() // passe\n+   ;\n+\n+   $this\n+       ->when(\n+           function() {\n+               trigger_error('message');\n+           }\n+       )\n+       ->error()\n+           ->withMessage(\"MESSAGE\")\n+           ->exists() // échoue\n+   ;\n+\n+\n+.. _with-any-message:\n+\n+withAnyMessage\n+==============\n+\n+``withAnyMessage`` ne vérifie pas le message de l'erreur. C'est le comportement par défaut de l'asserter. Donc ``->error()->withAnyMessage()->exists()`` est l'équivalent de ``->error()->exists()``. Cette méthode existe pour ajouter de la sématique dans vos tests.","path":"source/fr/assertions/error.inc.rst","position":44,"original_position":44,"commit_id":"7f30aa2bba083418681e90d9c858ff91db1b1122","original_commit_id":"7f30aa2bba083418681e90d9c858ff91db1b1122","user":{"login":"marmotz","id":932553,"avatar_url":"https://avatars.githubusercontent.com/u/932553?v=3","gravatar_id":"","url":"https://api.github.com/users/marmotz","html_url":"https://github.com/marmotz","followers_url":"https://api.github.com/users/marmotz/followers","following_url":"https://api.github.com/users/marmotz/following{/other_user}","gists_url":"https://api.github.com/users/marmotz/gists{/gist_id}","starred_url":"https://api.github.com/users/marmotz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmotz/subscriptions","organizations_url":"https://api.github.com/users/marmotz/orgs","repos_url":"https://api.github.com/users/marmotz/repos","events_url":"https://api.github.com/users/marmotz/events{/privacy}","received_events_url":"https://api.github.com/users/marmotz/received_events","type":"User","site_admin":false},"body":"Sémantique ","created_at":"2016-01-04T23:23:00Z","updated_at":"2016-01-04T23:23:00Z","html_url":"https://github.com/atoum/atoum-documentation/pull/168#discussion_r48795779","pull_request_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments/48795779"},"html":{"href":"https://github.com/atoum/atoum-documentation/pull/168#discussion_r48795779"},"pull_request":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168","id":55030172,"html_url":"https://github.com/atoum/atoum-documentation/pull/168","diff_url":"https://github.com/atoum/atoum-documentation/pull/168.diff","patch_url":"https://github.com/atoum/atoum-documentation/pull/168.patch","issue_url":"https://api.github.com/repos/atoum/atoum-documentation/issues/168","number":168,"state":"open","locked":false,"title":"add documentation on the withAnyMessage and withMessage methods of the error asserter","user":{"login":"agallou","id":320372,"avatar_url":"https://avatars.githubusercontent.com/u/320372?v=3","gravatar_id":"","url":"https://api.github.com/users/agallou","html_url":"https://github.com/agallou","followers_url":"https://api.github.com/users/agallou/followers","following_url":"https://api.github.com/users/agallou/following{/other_user}","gists_url":"https://api.github.com/users/agallou/gists{/gist_id}","starred_url":"https://api.github.com/users/agallou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agallou/subscriptions","organizations_url":"https://api.github.com/users/agallou/orgs","repos_url":"https://api.github.com/users/agallou/repos","events_url":"https://api.github.com/users/agallou/events{/privacy}","received_events_url":"https://api.github.com/users/agallou/received_events","type":"User","site_admin":false},"body":"fixes #154","created_at":"2016-01-04T22:21:02Z","updated_at":"2016-01-04T23:23:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"394f8b12cf6fecb1fe483ac31e3351fab2ba194e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168/commits","review_comments_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168/comments","review_comment_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atoum/atoum-documentation/issues/168/comments","statuses_url":"https://api.github.com/repos/atoum/atoum-documentation/statuses/7f30aa2bba083418681e90d9c858ff91db1b1122","head":{"label":"agallou:error_with_message_with_with_any_message","ref":"error_with_message_with_with_any_message","sha":"7f30aa2bba083418681e90d9c858ff91db1b1122","user":{"login":"agallou","id":320372,"avatar_url":"https://avatars.githubusercontent.com/u/320372?v=3","gravatar_id":"","url":"https://api.github.com/users/agallou","html_url":"https://github.com/agallou","followers_url":"https://api.github.com/users/agallou/followers","following_url":"https://api.github.com/users/agallou/following{/other_user}","gists_url":"https://api.github.com/users/agallou/gists{/gist_id}","starred_url":"https://api.github.com/users/agallou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agallou/subscriptions","organizations_url":"https://api.github.com/users/agallou/orgs","repos_url":"https://api.github.com/users/agallou/repos","events_url":"https://api.github.com/users/agallou/events{/privacy}","received_events_url":"https://api.github.com/users/agallou/received_events","type":"User","site_admin":false},"repo":{"id":6956021,"name":"atoum-documentation","full_name":"agallou/atoum-documentation","owner":{"login":"agallou","id":320372,"avatar_url":"https://avatars.githubusercontent.com/u/320372?v=3","gravatar_id":"","url":"https://api.github.com/users/agallou","html_url":"https://github.com/agallou","followers_url":"https://api.github.com/users/agallou/followers","following_url":"https://api.github.com/users/agallou/following{/other_user}","gists_url":"https://api.github.com/users/agallou/gists{/gist_id}","starred_url":"https://api.github.com/users/agallou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agallou/subscriptions","organizations_url":"https://api.github.com/users/agallou/orgs","repos_url":"https://api.github.com/users/agallou/repos","events_url":"https://api.github.com/users/agallou/events{/privacy}","received_events_url":"https://api.github.com/users/agallou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agallou/atoum-documentation","description":"","fork":true,"url":"https://api.github.com/repos/agallou/atoum-documentation","forks_url":"https://api.github.com/repos/agallou/atoum-documentation/forks","keys_url":"https://api.github.com/repos/agallou/atoum-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agallou/atoum-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agallou/atoum-documentation/teams","hooks_url":"https://api.github.com/repos/agallou/atoum-documentation/hooks","issue_events_url":"https://api.github.com/repos/agallou/atoum-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/agallou/atoum-documentation/events","assignees_url":"https://api.github.com/repos/agallou/atoum-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/agallou/atoum-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/agallou/atoum-documentation/tags","blobs_url":"https://api.github.com/repos/agallou/atoum-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agallou/atoum-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agallou/atoum-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/agallou/atoum-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agallou/atoum-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/agallou/atoum-documentation/languages","stargazers_url":"https://api.github.com/repos/agallou/atoum-documentation/stargazers","contributors_url":"https://api.github.com/repos/agallou/atoum-documentation/contributors","subscribers_url":"https://api.github.com/repos/agallou/atoum-documentation/subscribers","subscription_url":"https://api.github.com/repos/agallou/atoum-documentation/subscription","commits_url":"https://api.github.com/repos/agallou/atoum-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/agallou/atoum-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/agallou/atoum-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/agallou/atoum-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/agallou/atoum-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/agallou/atoum-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agallou/atoum-documentation/merges","archive_url":"https://api.github.com/repos/agallou/atoum-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agallou/atoum-documentation/downloads","issues_url":"https://api.github.com/repos/agallou/atoum-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/agallou/atoum-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/agallou/atoum-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/agallou/atoum-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agallou/atoum-documentation/labels{/name}","releases_url":"https://api.github.com/repos/agallou/atoum-documentation/releases{/id}","created_at":"2012-12-01T16:11:44Z","updated_at":"2013-01-13T11:05:50Z","pushed_at":"2016-01-04T22:26:18Z","git_url":"git://github.com/agallou/atoum-documentation.git","ssh_url":"git@github.com:agallou/atoum-documentation.git","clone_url":"https://github.com/agallou/atoum-documentation.git","svn_url":"https://github.com/agallou/atoum-documentation","homepage":"","size":1864,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atoum:master","ref":"master","sha":"f85536cdfa6971e46498ced5cf1f2a1b6beb7d11","user":{"login":"atoum","id":2794496,"avatar_url":"https://avatars.githubusercontent.com/u/2794496?v=3","gravatar_id":"","url":"https://api.github.com/users/atoum","html_url":"https://github.com/atoum","followers_url":"https://api.github.com/users/atoum/followers","following_url":"https://api.github.com/users/atoum/following{/other_user}","gists_url":"https://api.github.com/users/atoum/gists{/gist_id}","starred_url":"https://api.github.com/users/atoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atoum/subscriptions","organizations_url":"https://api.github.com/users/atoum/orgs","repos_url":"https://api.github.com/users/atoum/repos","events_url":"https://api.github.com/users/atoum/events{/privacy}","received_events_url":"https://api.github.com/users/atoum/received_events","type":"Organization","site_admin":false},"repo":{"id":6794996,"name":"atoum-documentation","full_name":"atoum/atoum-documentation","owner":{"login":"atoum","id":2794496,"avatar_url":"https://avatars.githubusercontent.com/u/2794496?v=3","gravatar_id":"","url":"https://api.github.com/users/atoum","html_url":"https://github.com/atoum","followers_url":"https://api.github.com/users/atoum/followers","following_url":"https://api.github.com/users/atoum/following{/other_user}","gists_url":"https://api.github.com/users/atoum/gists{/gist_id}","starred_url":"https://api.github.com/users/atoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atoum/subscriptions","organizations_url":"https://api.github.com/users/atoum/orgs","repos_url":"https://api.github.com/users/atoum/repos","events_url":"https://api.github.com/users/atoum/events{/privacy}","received_events_url":"https://api.github.com/users/atoum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atoum/atoum-documentation","description":"","fork":true,"url":"https://api.github.com/repos/atoum/atoum-documentation","forks_url":"https://api.github.com/repos/atoum/atoum-documentation/forks","keys_url":"https://api.github.com/repos/atoum/atoum-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atoum/atoum-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atoum/atoum-documentation/teams","hooks_url":"https://api.github.com/repos/atoum/atoum-documentation/hooks","issue_events_url":"https://api.github.com/repos/atoum/atoum-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/atoum/atoum-documentation/events","assignees_url":"https://api.github.com/repos/atoum/atoum-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/atoum/atoum-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/atoum/atoum-documentation/tags","blobs_url":"https://api.github.com/repos/atoum/atoum-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atoum/atoum-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atoum/atoum-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/atoum/atoum-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atoum/atoum-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/atoum/atoum-documentation/languages","stargazers_url":"https://api.github.com/repos/atoum/atoum-documentation/stargazers","contributors_url":"https://api.github.com/repos/atoum/atoum-documentation/contributors","subscribers_url":"https://api.github.com/repos/atoum/atoum-documentation/subscribers","subscription_url":"https://api.github.com/repos/atoum/atoum-documentation/subscription","commits_url":"https://api.github.com/repos/atoum/atoum-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/atoum/atoum-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/atoum/atoum-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/atoum/atoum-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/atoum/atoum-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/atoum/atoum-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atoum/atoum-documentation/merges","archive_url":"https://api.github.com/repos/atoum/atoum-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atoum/atoum-documentation/downloads","issues_url":"https://api.github.com/repos/atoum/atoum-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/atoum/atoum-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/atoum/atoum-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atoum/atoum-documentation/labels{/name}","releases_url":"https://api.github.com/repos/atoum/atoum-documentation/releases{/id}","created_at":"2012-11-21T12:07:43Z","updated_at":"2015-11-04T23:34:46Z","pushed_at":"2016-01-04T22:26:18Z","git_url":"git://github.com/atoum/atoum-documentation.git","ssh_url":"git@github.com:atoum/atoum-documentation.git","clone_url":"https://github.com/atoum/atoum-documentation.git","svn_url":"https://github.com/atoum/atoum-documentation","homepage":"http://docs.atoum.org","size":1841,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":29,"forks":26,"open_issues":29,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168"},"html":{"href":"https://github.com/atoum/atoum-documentation/pull/168"},"issue":{"href":"https://api.github.com/repos/atoum/atoum-documentation/issues/168"},"comments":{"href":"https://api.github.com/repos/atoum/atoum-documentation/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/atoum/atoum-documentation/statuses/7f30aa2bba083418681e90d9c858ff91db1b1122"}}}}