{"action":"created","comment":{"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments/36346868","id":36346868,"diff_hunk":"@@ -0,0 +1,161 @@\n+--TEST--\n+MongoDB\\Driver\\Manager::getWriteConcern()\n+--SKIPIF--\n+<?php require __DIR__ . \"/../utils/basic-skipif.inc\"?>\n+--FILE--\n+<?php\n+require_once __DIR__ . \"/../utils/basic.inc\";\n+\n+$tests = array(\n+    array(STANDALONE, array()),\n+    array(STANDALONE . '/?w=1', array()),\n+    array(STANDALONE . '/?w=majority', array()),\n+    array(STANDALONE, array('w' => 1, 'journal' => true)),\n+    array(STANDALONE, array('w' => 'majority', 'journal' => true)),\n+    array(STANDALONE . '/?w=majority&journal=true', array('w' => 1, 'journal' => false)),\n+    // wtimeoutms does not get applied unless w > 1, w = majority, or tag sets are used\n+    array(STANDALONE . '/?wtimeoutms=1000', array()),\n+    array(STANDALONE, array('wtimeoutms' => 1000)),\n+    array(STANDALONE . '/?w=2', array('wtimeoutms' => 1000)),\n+    array(STANDALONE . '/?w=majority', array('wtimeoutms' => 1000)),\n+    array(STANDALONE . '/?w=customTagSet', array('wtimeoutms' => 1000)),\n+);\n+\n+foreach ($tests as $i => $test) {\n+    list($uri, $options) = $test;\n+\n+    $manager = new MongoDB\\Driver\\Manager($uri, $options);\n+    var_dump($manager->getWriteConcern());\n+}","path":"tests/manager/manager-getwriteconcern-001.phpt","position":null,"original_position":29,"commit_id":"adce38a5ccbad4b0cdc44d5cb2e58f630da410d3","original_commit_id":"c831b58c578a95926436d7ab44b13e4ad020d9c4","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"body":"Added.","created_at":"2015-08-05T19:58:25Z","updated_at":"2015-08-05T19:58:25Z","html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77#discussion_r36346868","pull_request_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments/36346868"},"html":{"href":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77#discussion_r36346868"},"pull_request":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77","id":41712501,"html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77","diff_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77.diff","patch_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77.patch","issue_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/77","number":77,"state":"open","locked":false,"title":"Manager getters and options for read prefs and write concerns","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"body":" * https://jira.mongodb.org/browse/PHPC-196\r\n * https://jira.mongodb.org/browse/PHPC-353","created_at":"2015-08-05T18:49:59Z","updated_at":"2015-08-05T19:58:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf7403c7485e3b8592c4e76fbfb415d15bcb2f74","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77/commits","review_comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77/comments","review_comment_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments{/number}","comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/77/comments","statuses_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/adce38a5ccbad4b0cdc44d5cb2e58f630da410d3","head":{"label":"jmikola:phpc-196","ref":"phpc-196","sha":"adce38a5ccbad4b0cdc44d5cb2e58f630da410d3","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"repo":{"id":32424485,"name":"mongo-php-driver-prototype","full_name":"jmikola/mongo-php-driver-prototype","owner":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmikola/mongo-php-driver-prototype","description":"PHP MongoDB - PHongo - new MongoDB driver for PHP","fork":true,"url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype","forks_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/forks","keys_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/teams","hooks_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/hooks","issue_events_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues/events{/number}","events_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/events","assignees_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/assignees{/user}","branches_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/branches{/branch}","tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/tags","blobs_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/statuses/{sha}","languages_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/languages","stargazers_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/stargazers","contributors_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/contributors","subscribers_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/subscribers","subscription_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/subscription","commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/contents/{+path}","compare_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/merges","archive_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/downloads","issues_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues{/number}","pulls_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/pulls{/number}","milestones_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/milestones{/number}","notifications_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/labels{/name}","releases_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/releases{/id}","created_at":"2015-03-17T22:38:23Z","updated_at":"2015-05-06T17:35:42Z","pushed_at":"2015-08-05T19:58:03Z","git_url":"git://github.com/jmikola/mongo-php-driver-prototype.git","ssh_url":"git@github.com:jmikola/mongo-php-driver-prototype.git","clone_url":"https://github.com/jmikola/mongo-php-driver-prototype.git","svn_url":"https://github.com/jmikola/mongo-php-driver-prototype","homepage":null,"size":2557,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"10gen-labs:master","ref":"master","sha":"8a62862f9542ff45d0c7e18d69af9ca4c50fd613","user":{"login":"10gen-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/10gen-labs","html_url":"https://github.com/10gen-labs","followers_url":"https://api.github.com/users/10gen-labs/followers","following_url":"https://api.github.com/users/10gen-labs/following{/other_user}","gists_url":"https://api.github.com/users/10gen-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/10gen-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10gen-labs/subscriptions","organizations_url":"https://api.github.com/users/10gen-labs/orgs","repos_url":"https://api.github.com/users/10gen-labs/repos","events_url":"https://api.github.com/users/10gen-labs/events{/privacy}","received_events_url":"https://api.github.com/users/10gen-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":19514152,"name":"mongo-php-driver-prototype","full_name":"10gen-labs/mongo-php-driver-prototype","owner":{"login":"10gen-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/10gen-labs","html_url":"https://github.com/10gen-labs","followers_url":"https://api.github.com/users/10gen-labs/followers","following_url":"https://api.github.com/users/10gen-labs/following{/other_user}","gists_url":"https://api.github.com/users/10gen-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/10gen-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10gen-labs/subscriptions","organizations_url":"https://api.github.com/users/10gen-labs/orgs","repos_url":"https://api.github.com/users/10gen-labs/repos","events_url":"https://api.github.com/users/10gen-labs/events{/privacy}","received_events_url":"https://api.github.com/users/10gen-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype","description":"MongoDB PHP driver (experimental)","fork":false,"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype","forks_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/forks","keys_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/keys{/key_id}","collaborators_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/teams","hooks_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/hooks","issue_events_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/events{/number}","events_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/events","assignees_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/assignees{/user}","branches_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/branches{/branch}","tags_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/tags","blobs_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/refs{/sha}","trees_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/trees{/sha}","statuses_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/{sha}","languages_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/languages","stargazers_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/stargazers","contributors_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/contributors","subscribers_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/subscribers","subscription_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/subscription","commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/commits{/sha}","git_commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/commits{/sha}","comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/comments{/number}","issue_comment_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/comments{/number}","contents_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/contents/{+path}","compare_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/compare/{base}...{head}","merges_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/merges","archive_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/downloads","issues_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues{/number}","pulls_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls{/number}","milestones_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/milestones{/number}","notifications_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/labels{/name}","releases_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/releases{/id}","created_at":"2014-05-06T23:18:32Z","updated_at":"2015-07-22T16:48:22Z","pushed_at":"2015-08-05T19:58:04Z","git_url":"git://github.com/10gen-labs/mongo-php-driver-prototype.git","ssh_url":"git@github.com:10gen-labs/mongo-php-driver-prototype.git","clone_url":"https://github.com/10gen-labs/mongo-php-driver-prototype.git","svn_url":"https://github.com/10gen-labs/mongo-php-driver-prototype","homepage":"","size":4148,"stargazers_count":28,"watchers_count":28,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77"},"html":{"href":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/77"},"issue":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/77"},"comments":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/adce38a5ccbad4b0cdc44d5cb2e58f630da410d3"}}}}