{"action":"closed","number":4743,"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/4743","id":162444951,"html_url":"https://github.com/Codeception/Codeception/pull/4743","diff_url":"https://github.com/Codeception/Codeception/pull/4743.diff","patch_url":"https://github.com/Codeception/Codeception/pull/4743.patch","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/4743","number":4743,"state":"closed","locked":false,"title":"Adding support for custom formatting of argument output (#3408)","user":{"login":"unt01d","id":11303423,"avatar_url":"https://avatars3.githubusercontent.com/u/11303423?v=4","gravatar_id":"","url":"https://api.github.com/users/unt01d","html_url":"https://github.com/unt01d","followers_url":"https://api.github.com/users/unt01d/followers","following_url":"https://api.github.com/users/unt01d/following{/other_user}","gists_url":"https://api.github.com/users/unt01d/gists{/gist_id}","starred_url":"https://api.github.com/users/unt01d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt01d/subscriptions","organizations_url":"https://api.github.com/users/unt01d/orgs","repos_url":"https://api.github.com/users/unt01d/repos","events_url":"https://api.github.com/users/unt01d/events{/privacy}","received_events_url":"https://api.github.com/users/unt01d/received_events","type":"User","site_admin":false},"body":"Enables custom formatting of argument output via the creation of argument classes which implement the `Codeception\\Step\\Argument\\FormattedOutput` interface.  The argument class `Codeception\\Step\\Argument\\PasswordArgument` is provided as this is a common use case.\r\n\r\nNow we can do e.g.:\r\n\r\n```\r\n<?php\r\n\r\nuse Codeception\\Step\\Argument\\PasswordArgument;\r\n\r\nclass LoginCest\r\n{\r\n    public function testLogin(AcceptanceTester $I)\r\n    {\r\n        $I->amOnPage('/login');\r\n\r\n        $I->fillField('username', 'Bob');\r\n        $I->fillField('password', new PasswordArgument('password'));\r\n        $I->click('Log in');\r\n\r\n        $I->see('Hi, Bob!');\r\n    }\r\n}\r\n```\r\n\r\nWhich will give us:\r\n\r\n```\r\n$ codecept run acceptance --steps\r\nCodeception PHP Testing Framework v2.3.7\r\nPowered by PHPUnit 5.7.26 by Sebastian Bergmann and contributors.\r\n\r\nAcceptance Tests (1) -------------------------------------------------\r\nLoginCest: Test login\r\nSignature: LoginCest:testlLogin\r\nTest: tests/acceptance/LoginCest.php:testLogin\r\nScenario --\r\n I am on page \"/login\"\r\n I fill field \"username\",\"Bob\"\r\n I fill field \"password\",\"******\"\r\n I click \"Log in\"\r\n I see \"Hi, Bob!\"\r\n PASSED \r\n\r\n----------------------------------------------------------------------\r\n\r\n\r\nTime: 505 ms, Memory: 15.50MB\r\n\r\nOK (1 test, 1 assertion)\r\n\r\n```","created_at":"2018-01-11T17:47:08Z","updated_at":"2018-02-26T19:21:45Z","closed_at":"2018-02-26T19:21:45Z","merged_at":"2018-02-26T19:21:44Z","merge_commit_sha":"aeddb0cde61d2f83e3a2fc51a075d13f36aad365","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Codeception/Codeception/pulls/4743/commits","review_comments_url":"https://api.github.com/repos/Codeception/Codeception/pulls/4743/comments","review_comment_url":"https://api.github.com/repos/Codeception/Codeception/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/4743/comments","statuses_url":"https://api.github.com/repos/Codeception/Codeception/statuses/b486768ffae5562b78b907001f52ab23f23c5b8c","head":{"label":"unt01d:custom-argument-output-formatting","ref":"custom-argument-output-formatting","sha":"b486768ffae5562b78b907001f52ab23f23c5b8c","user":{"login":"unt01d","id":11303423,"avatar_url":"https://avatars3.githubusercontent.com/u/11303423?v=4","gravatar_id":"","url":"https://api.github.com/users/unt01d","html_url":"https://github.com/unt01d","followers_url":"https://api.github.com/users/unt01d/followers","following_url":"https://api.github.com/users/unt01d/following{/other_user}","gists_url":"https://api.github.com/users/unt01d/gists{/gist_id}","starred_url":"https://api.github.com/users/unt01d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt01d/subscriptions","organizations_url":"https://api.github.com/users/unt01d/orgs","repos_url":"https://api.github.com/users/unt01d/repos","events_url":"https://api.github.com/users/unt01d/events{/privacy}","received_events_url":"https://api.github.com/users/unt01d/received_events","type":"User","site_admin":false},"repo":{"id":105256498,"name":"Codeception","full_name":"unt01d/Codeception","owner":{"login":"unt01d","id":11303423,"avatar_url":"https://avatars3.githubusercontent.com/u/11303423?v=4","gravatar_id":"","url":"https://api.github.com/users/unt01d","html_url":"https://github.com/unt01d","followers_url":"https://api.github.com/users/unt01d/followers","following_url":"https://api.github.com/users/unt01d/following{/other_user}","gists_url":"https://api.github.com/users/unt01d/gists{/gist_id}","starred_url":"https://api.github.com/users/unt01d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unt01d/subscriptions","organizations_url":"https://api.github.com/users/unt01d/orgs","repos_url":"https://api.github.com/users/unt01d/repos","events_url":"https://api.github.com/users/unt01d/events{/privacy}","received_events_url":"https://api.github.com/users/unt01d/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unt01d/Codeception","description":"Full-stack testing PHP framework","fork":true,"url":"https://api.github.com/repos/unt01d/Codeception","forks_url":"https://api.github.com/repos/unt01d/Codeception/forks","keys_url":"https://api.github.com/repos/unt01d/Codeception/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unt01d/Codeception/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unt01d/Codeception/teams","hooks_url":"https://api.github.com/repos/unt01d/Codeception/hooks","issue_events_url":"https://api.github.com/repos/unt01d/Codeception/issues/events{/number}","events_url":"https://api.github.com/repos/unt01d/Codeception/events","assignees_url":"https://api.github.com/repos/unt01d/Codeception/assignees{/user}","branches_url":"https://api.github.com/repos/unt01d/Codeception/branches{/branch}","tags_url":"https://api.github.com/repos/unt01d/Codeception/tags","blobs_url":"https://api.github.com/repos/unt01d/Codeception/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unt01d/Codeception/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unt01d/Codeception/git/refs{/sha}","trees_url":"https://api.github.com/repos/unt01d/Codeception/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unt01d/Codeception/statuses/{sha}","languages_url":"https://api.github.com/repos/unt01d/Codeception/languages","stargazers_url":"https://api.github.com/repos/unt01d/Codeception/stargazers","contributors_url":"https://api.github.com/repos/unt01d/Codeception/contributors","subscribers_url":"https://api.github.com/repos/unt01d/Codeception/subscribers","subscription_url":"https://api.github.com/repos/unt01d/Codeception/subscription","commits_url":"https://api.github.com/repos/unt01d/Codeception/commits{/sha}","git_commits_url":"https://api.github.com/repos/unt01d/Codeception/git/commits{/sha}","comments_url":"https://api.github.com/repos/unt01d/Codeception/comments{/number}","issue_comment_url":"https://api.github.com/repos/unt01d/Codeception/issues/comments{/number}","contents_url":"https://api.github.com/repos/unt01d/Codeception/contents/{+path}","compare_url":"https://api.github.com/repos/unt01d/Codeception/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unt01d/Codeception/merges","archive_url":"https://api.github.com/repos/unt01d/Codeception/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unt01d/Codeception/downloads","issues_url":"https://api.github.com/repos/unt01d/Codeception/issues{/number}","pulls_url":"https://api.github.com/repos/unt01d/Codeception/pulls{/number}","milestones_url":"https://api.github.com/repos/unt01d/Codeception/milestones{/number}","notifications_url":"https://api.github.com/repos/unt01d/Codeception/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unt01d/Codeception/labels{/name}","releases_url":"https://api.github.com/repos/unt01d/Codeception/releases{/id}","deployments_url":"https://api.github.com/repos/unt01d/Codeception/deployments","created_at":"2017-09-29T09:43:19Z","updated_at":"2017-09-29T09:43:23Z","pushed_at":"2018-01-12T16:19:31Z","git_url":"git://github.com/unt01d/Codeception.git","ssh_url":"git@github.com:unt01d/Codeception.git","clone_url":"https://github.com/unt01d/Codeception.git","svn_url":"https://github.com/unt01d/Codeception","homepage":"http://codeception.com","size":70143,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"2.3"}},"base":{"label":"Codeception:2.3","ref":"2.3","sha":"666611f38aa5bb24e8abf83c1c81c359d2cf4dff","user":{"login":"Codeception","id":1288753,"avatar_url":"https://avatars2.githubusercontent.com/u/1288753?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeception","html_url":"https://github.com/Codeception","followers_url":"https://api.github.com/users/Codeception/followers","following_url":"https://api.github.com/users/Codeception/following{/other_user}","gists_url":"https://api.github.com/users/Codeception/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeception/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeception/subscriptions","organizations_url":"https://api.github.com/users/Codeception/orgs","repos_url":"https://api.github.com/users/Codeception/repos","events_url":"https://api.github.com/users/Codeception/events{/privacy}","received_events_url":"https://api.github.com/users/Codeception/received_events","type":"Organization","site_admin":false},"repo":{"id":2880469,"name":"Codeception","full_name":"Codeception/Codeception","owner":{"login":"Codeception","id":1288753,"avatar_url":"https://avatars2.githubusercontent.com/u/1288753?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeception","html_url":"https://github.com/Codeception","followers_url":"https://api.github.com/users/Codeception/followers","following_url":"https://api.github.com/users/Codeception/following{/other_user}","gists_url":"https://api.github.com/users/Codeception/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeception/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeception/subscriptions","organizations_url":"https://api.github.com/users/Codeception/orgs","repos_url":"https://api.github.com/users/Codeception/repos","events_url":"https://api.github.com/users/Codeception/events{/privacy}","received_events_url":"https://api.github.com/users/Codeception/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codeception/Codeception","description":"Full-stack testing PHP framework","fork":false,"url":"https://api.github.com/repos/Codeception/Codeception","forks_url":"https://api.github.com/repos/Codeception/Codeception/forks","keys_url":"https://api.github.com/repos/Codeception/Codeception/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codeception/Codeception/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codeception/Codeception/teams","hooks_url":"https://api.github.com/repos/Codeception/Codeception/hooks","issue_events_url":"https://api.github.com/repos/Codeception/Codeception/issues/events{/number}","events_url":"https://api.github.com/repos/Codeception/Codeception/events","assignees_url":"https://api.github.com/repos/Codeception/Codeception/assignees{/user}","branches_url":"https://api.github.com/repos/Codeception/Codeception/branches{/branch}","tags_url":"https://api.github.com/repos/Codeception/Codeception/tags","blobs_url":"https://api.github.com/repos/Codeception/Codeception/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codeception/Codeception/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codeception/Codeception/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codeception/Codeception/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codeception/Codeception/statuses/{sha}","languages_url":"https://api.github.com/repos/Codeception/Codeception/languages","stargazers_url":"https://api.github.com/repos/Codeception/Codeception/stargazers","contributors_url":"https://api.github.com/repos/Codeception/Codeception/contributors","subscribers_url":"https://api.github.com/repos/Codeception/Codeception/subscribers","subscription_url":"https://api.github.com/repos/Codeception/Codeception/subscription","commits_url":"https://api.github.com/repos/Codeception/Codeception/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codeception/Codeception/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codeception/Codeception/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codeception/Codeception/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codeception/Codeception/contents/{+path}","compare_url":"https://api.github.com/repos/Codeception/Codeception/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codeception/Codeception/merges","archive_url":"https://api.github.com/repos/Codeception/Codeception/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codeception/Codeception/downloads","issues_url":"https://api.github.com/repos/Codeception/Codeception/issues{/number}","pulls_url":"https://api.github.com/repos/Codeception/Codeception/pulls{/number}","milestones_url":"https://api.github.com/repos/Codeception/Codeception/milestones{/number}","notifications_url":"https://api.github.com/repos/Codeception/Codeception/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codeception/Codeception/labels{/name}","releases_url":"https://api.github.com/repos/Codeception/Codeception/releases{/id}","deployments_url":"https://api.github.com/repos/Codeception/Codeception/deployments","created_at":"2011-11-30T04:06:44Z","updated_at":"2018-02-26T16:15:36Z","pushed_at":"2018-02-26T19:21:44Z","git_url":"git://github.com/Codeception/Codeception.git","ssh_url":"git@github.com:Codeception/Codeception.git","clone_url":"https://github.com/Codeception/Codeception.git","svn_url":"https://github.com/Codeception/Codeception","homepage":"http://codeception.com","size":70328,"stargazers_count":3197,"watchers_count":3197,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1131,"mirror_url":null,"archived":false,"open_issues_count":350,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1131,"open_issues":350,"watchers":3197,"default_branch":"2.3"}},"_links":{"self":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/4743"},"html":{"href":"https://github.com/Codeception/Codeception/pull/4743"},"issue":{"href":"https://api.github.com/repos/Codeception/Codeception/issues/4743"},"comments":{"href":"https://api.github.com/repos/Codeception/Codeception/issues/4743/comments"},"review_comments":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/4743/comments"},"review_comment":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/4743/commits"},"statuses":{"href":"https://api.github.com/repos/Codeception/Codeception/statuses/b486768ffae5562b78b907001f52ab23f23c5b8c"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars0.githubusercontent.com/u/220264?v=4","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"comments":7,"review_comments":1,"maintainer_can_modify":false,"commits":4,"additions":89,"deletions":2,"changed_files":7}}
{"actor":{"display_login":"DavertMik"}}