{"action":"created","comment":{"url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments/24167396","id":24167396,"diff_hunk":"@@ -940,6 +940,37 @@ atoum vous permet de vérifier qu'un bouchon a été utilisé correctement.\n    Reportez-vous à la documentation sur l'assertion :ref:`mock-asserter` pour obtenir plus d'informations sur les tests des bouchons.\n \n \n+La simulation du fonctionnement des fonctions natives de PHP\n+************************************************************\n+Atoum permet de facilement simuler le fonctionnement des fonctions natives de PHP.\n+\n+.. code-block:: php\n+\n+   <?php\n+   \n+   $this\n+      ->assert('le fichier nexiste')\n+         ->given($this->newTestedInstance())\n+         ->if($this->function->file_exists = true)\n+         ->then\n+         ->object($this->testedInstance->loadConfigFile())\n+            ->isTestedInstance()\n+            ->function('file_exists')->wasCalled()->once()\n+\n+      ->assert('le fichier nexiste pas')\n+         ->given($this->newTestedInstance())\n+         ->if($this->function->file_exists = false )\n+         ->then\n+         ->exception(function() { $this->testedInstance->loadConfigFile(); })\n+   ;\n+\n+.. important::\n+   On ne peut pas mettre de \\ devant les fonctions a simulé car Atoum s’appuie sur le mécanisme de résolution des espaces de nom de PHP\n+   \n+.. important::\n+   il ne faut pas que la fonction dont on souhaite simuler le fonctionnement soit appelée avant la simulation","path":"source/fr/aide_ecriture.rst","position":32,"original_position":32,"commit_id":"6f90dfb4e63586aa142fa097620740e07c6a6bc1","original_commit_id":"6f90dfb4e63586aa142fa097620740e07c6a6bc1","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":"ah bon ? o_O","created_at":"2015-02-05T14:50:35Z","updated_at":"2015-02-05T14:50:35Z","html_url":"https://github.com/atoum/atoum-documentation/pull/73#discussion_r24167396","pull_request_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/comments/24167396"},"html":{"href":"https://github.com/atoum/atoum-documentation/pull/73#discussion_r24167396"},"pull_request":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73","id":28729818,"html_url":"https://github.com/atoum/atoum-documentation/pull/73","diff_url":"https://github.com/atoum/atoum-documentation/pull/73.diff","patch_url":"https://github.com/atoum/atoum-documentation/pull/73.patch","issue_url":"https://api.github.com/repos/atoum/atoum-documentation/issues/73","number":73,"state":"open","locked":false,"title":"Update aide_ecriture.rst","user":{"login":"CedCannes","id":2522998,"avatar_url":"https://avatars.githubusercontent.com/u/2522998?v=3","gravatar_id":"","url":"https://api.github.com/users/CedCannes","html_url":"https://github.com/CedCannes","followers_url":"https://api.github.com/users/CedCannes/followers","following_url":"https://api.github.com/users/CedCannes/following{/other_user}","gists_url":"https://api.github.com/users/CedCannes/gists{/gist_id}","starred_url":"https://api.github.com/users/CedCannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedCannes/subscriptions","organizations_url":"https://api.github.com/users/CedCannes/orgs","repos_url":"https://api.github.com/users/CedCannes/repos","events_url":"https://api.github.com/users/CedCannes/events{/privacy}","received_events_url":"https://api.github.com/users/CedCannes/received_events","type":"User","site_admin":false},"body":"Ajout de la partie : La simulation du fonctionnement des fonctions natives de PHP","created_at":"2015-02-05T14:48:27Z","updated_at":"2015-02-05T14:50:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f00d5bd56e718620e38ae97f9bca9e942be1737","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73/commits","review_comments_url":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73/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/73/comments","statuses_url":"https://api.github.com/repos/atoum/atoum-documentation/statuses/6f90dfb4e63586aa142fa097620740e07c6a6bc1","head":{"label":"CedCannes:patch-2","ref":"patch-2","sha":"6f90dfb4e63586aa142fa097620740e07c6a6bc1","user":{"login":"CedCannes","id":2522998,"avatar_url":"https://avatars.githubusercontent.com/u/2522998?v=3","gravatar_id":"","url":"https://api.github.com/users/CedCannes","html_url":"https://github.com/CedCannes","followers_url":"https://api.github.com/users/CedCannes/followers","following_url":"https://api.github.com/users/CedCannes/following{/other_user}","gists_url":"https://api.github.com/users/CedCannes/gists{/gist_id}","starred_url":"https://api.github.com/users/CedCannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedCannes/subscriptions","organizations_url":"https://api.github.com/users/CedCannes/orgs","repos_url":"https://api.github.com/users/CedCannes/repos","events_url":"https://api.github.com/users/CedCannes/events{/privacy}","received_events_url":"https://api.github.com/users/CedCannes/received_events","type":"User","site_admin":false},"repo":{"id":7763873,"name":"atoum-documentation","full_name":"CedCannes/atoum-documentation","owner":{"login":"CedCannes","id":2522998,"avatar_url":"https://avatars.githubusercontent.com/u/2522998?v=3","gravatar_id":"","url":"https://api.github.com/users/CedCannes","html_url":"https://github.com/CedCannes","followers_url":"https://api.github.com/users/CedCannes/followers","following_url":"https://api.github.com/users/CedCannes/following{/other_user}","gists_url":"https://api.github.com/users/CedCannes/gists{/gist_id}","starred_url":"https://api.github.com/users/CedCannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedCannes/subscriptions","organizations_url":"https://api.github.com/users/CedCannes/orgs","repos_url":"https://api.github.com/users/CedCannes/repos","events_url":"https://api.github.com/users/CedCannes/events{/privacy}","received_events_url":"https://api.github.com/users/CedCannes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CedCannes/atoum-documentation","description":"","fork":true,"url":"https://api.github.com/repos/CedCannes/atoum-documentation","forks_url":"https://api.github.com/repos/CedCannes/atoum-documentation/forks","keys_url":"https://api.github.com/repos/CedCannes/atoum-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CedCannes/atoum-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CedCannes/atoum-documentation/teams","hooks_url":"https://api.github.com/repos/CedCannes/atoum-documentation/hooks","issue_events_url":"https://api.github.com/repos/CedCannes/atoum-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/CedCannes/atoum-documentation/events","assignees_url":"https://api.github.com/repos/CedCannes/atoum-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/CedCannes/atoum-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/CedCannes/atoum-documentation/tags","blobs_url":"https://api.github.com/repos/CedCannes/atoum-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CedCannes/atoum-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CedCannes/atoum-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/CedCannes/atoum-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CedCannes/atoum-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/CedCannes/atoum-documentation/languages","stargazers_url":"https://api.github.com/repos/CedCannes/atoum-documentation/stargazers","contributors_url":"https://api.github.com/repos/CedCannes/atoum-documentation/contributors","subscribers_url":"https://api.github.com/repos/CedCannes/atoum-documentation/subscribers","subscription_url":"https://api.github.com/repos/CedCannes/atoum-documentation/subscription","commits_url":"https://api.github.com/repos/CedCannes/atoum-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/CedCannes/atoum-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/CedCannes/atoum-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/CedCannes/atoum-documentation/issues/comments/{number}","contents_url":"https://api.github.com/repos/CedCannes/atoum-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/CedCannes/atoum-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CedCannes/atoum-documentation/merges","archive_url":"https://api.github.com/repos/CedCannes/atoum-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CedCannes/atoum-documentation/downloads","issues_url":"https://api.github.com/repos/CedCannes/atoum-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/CedCannes/atoum-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/CedCannes/atoum-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/CedCannes/atoum-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CedCannes/atoum-documentation/labels{/name}","releases_url":"https://api.github.com/repos/CedCannes/atoum-documentation/releases{/id}","created_at":"2013-01-22T23:36:59Z","updated_at":"2013-01-23T06:28:30Z","pushed_at":"2015-02-05T14:48:08Z","git_url":"git://github.com/CedCannes/atoum-documentation.git","ssh_url":"git@github.com:CedCannes/atoum-documentation.git","clone_url":"https://github.com/CedCannes/atoum-documentation.git","svn_url":"https://github.com/CedCannes/atoum-documentation","homepage":"http://docs.atoum.org","size":442,"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":"bbb3f9cf21251eec58ea2f9a519d0c2368dd280f","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-02-04T22:07:46Z","pushed_at":"2015-02-04T22:07:46Z","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":2174,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73"},"html":{"href":"https://github.com/atoum/atoum-documentation/pull/73"},"issue":{"href":"https://api.github.com/repos/atoum/atoum-documentation/issues/73"},"comments":{"href":"https://api.github.com/repos/atoum/atoum-documentation/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/atoum/atoum-documentation/pulls/73/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/73/commits"},"statuses":{"href":"https://api.github.com/repos/atoum/atoum-documentation/statuses/6f90dfb4e63586aa142fa097620740e07c6a6bc1"}}}}