{"action":"opened","number":655,"pull_request":{"url":"https://api.github.com/repos/minkphp/Mink/pulls/655","id":38132583,"html_url":"https://github.com/minkphp/Mink/pull/655","diff_url":"https://github.com/minkphp/Mink/pull/655.diff","patch_url":"https://github.com/minkphp/Mink/pull/655.patch","issue_url":"https://api.github.com/repos/minkphp/Mink/issues/655","number":655,"state":"open","locked":false,"title":"Fixed WebAssert::cleanUrl assuming front controller.","user":{"login":"Chekote","id":550486,"avatar_url":"https://avatars.githubusercontent.com/u/550486?v=3","gravatar_id":"","url":"https://api.github.com/users/Chekote","html_url":"https://github.com/Chekote","followers_url":"https://api.github.com/users/Chekote/followers","following_url":"https://api.github.com/users/Chekote/following{/other_user}","gists_url":"https://api.github.com/users/Chekote/gists{/gist_id}","starred_url":"https://api.github.com/users/Chekote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chekote/subscriptions","organizations_url":"https://api.github.com/users/Chekote/orgs","repos_url":"https://api.github.com/users/Chekote/repos","events_url":"https://api.github.com/users/Chekote/events{/privacy}","received_events_url":"https://api.github.com/users/Chekote/received_events","type":"User","site_admin":false},"body":"We're using Behat to test a PHP application that is not currently using any framework. We have a simple test where we use a button to navigate from one page to another. e.g. from /page1.php to /page2.php\r\n\r\nThe button is currently broken, and does not actually leave /page1.php, but when we use the Then I should be on \"/page2.php\"  the test passes even though we are still on /page1.php.\r\n\r\nWe have narrowed this down to the cleanUrl() calls in WebAssert::addressEquals and WebAssert::getCurrentUrlPath, which seems to be stripping out the php script. The only reason I can think of for Mink to do this is that it's assuming the script is a front controller.\r\n\r\nPlease let me know if I'm not understanding this correctly. If I am, I believe this pull request should resolve the issue.\r\n\r\nThanks.","created_at":"2015-06-19T18:04:58Z","updated_at":"2015-06-19T18:04:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minkphp/Mink/pulls/655/commits","review_comments_url":"https://api.github.com/repos/minkphp/Mink/pulls/655/comments","review_comment_url":"https://api.github.com/repos/minkphp/Mink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minkphp/Mink/issues/655/comments","statuses_url":"https://api.github.com/repos/minkphp/Mink/statuses/1ad01008f99f1cb8aab35ce89389af0fc59de512","head":{"label":"Chekote:fix_cleanurl","ref":"fix_cleanurl","sha":"1ad01008f99f1cb8aab35ce89389af0fc59de512","user":{"login":"Chekote","id":550486,"avatar_url":"https://avatars.githubusercontent.com/u/550486?v=3","gravatar_id":"","url":"https://api.github.com/users/Chekote","html_url":"https://github.com/Chekote","followers_url":"https://api.github.com/users/Chekote/followers","following_url":"https://api.github.com/users/Chekote/following{/other_user}","gists_url":"https://api.github.com/users/Chekote/gists{/gist_id}","starred_url":"https://api.github.com/users/Chekote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chekote/subscriptions","organizations_url":"https://api.github.com/users/Chekote/orgs","repos_url":"https://api.github.com/users/Chekote/repos","events_url":"https://api.github.com/users/Chekote/events{/privacy}","received_events_url":"https://api.github.com/users/Chekote/received_events","type":"User","site_admin":false},"repo":{"id":18645213,"name":"Mink","full_name":"Chekote/Mink","owner":{"login":"Chekote","id":550486,"avatar_url":"https://avatars.githubusercontent.com/u/550486?v=3","gravatar_id":"","url":"https://api.github.com/users/Chekote","html_url":"https://github.com/Chekote","followers_url":"https://api.github.com/users/Chekote/followers","following_url":"https://api.github.com/users/Chekote/following{/other_user}","gists_url":"https://api.github.com/users/Chekote/gists{/gist_id}","starred_url":"https://api.github.com/users/Chekote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chekote/subscriptions","organizations_url":"https://api.github.com/users/Chekote/orgs","repos_url":"https://api.github.com/users/Chekote/repos","events_url":"https://api.github.com/users/Chekote/events{/privacy}","received_events_url":"https://api.github.com/users/Chekote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chekote/Mink","description":"PHP 5.3+ acceptance test framework for web applications","fork":true,"url":"https://api.github.com/repos/Chekote/Mink","forks_url":"https://api.github.com/repos/Chekote/Mink/forks","keys_url":"https://api.github.com/repos/Chekote/Mink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chekote/Mink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chekote/Mink/teams","hooks_url":"https://api.github.com/repos/Chekote/Mink/hooks","issue_events_url":"https://api.github.com/repos/Chekote/Mink/issues/events{/number}","events_url":"https://api.github.com/repos/Chekote/Mink/events","assignees_url":"https://api.github.com/repos/Chekote/Mink/assignees{/user}","branches_url":"https://api.github.com/repos/Chekote/Mink/branches{/branch}","tags_url":"https://api.github.com/repos/Chekote/Mink/tags","blobs_url":"https://api.github.com/repos/Chekote/Mink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chekote/Mink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chekote/Mink/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chekote/Mink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chekote/Mink/statuses/{sha}","languages_url":"https://api.github.com/repos/Chekote/Mink/languages","stargazers_url":"https://api.github.com/repos/Chekote/Mink/stargazers","contributors_url":"https://api.github.com/repos/Chekote/Mink/contributors","subscribers_url":"https://api.github.com/repos/Chekote/Mink/subscribers","subscription_url":"https://api.github.com/repos/Chekote/Mink/subscription","commits_url":"https://api.github.com/repos/Chekote/Mink/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chekote/Mink/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chekote/Mink/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chekote/Mink/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chekote/Mink/contents/{+path}","compare_url":"https://api.github.com/repos/Chekote/Mink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chekote/Mink/merges","archive_url":"https://api.github.com/repos/Chekote/Mink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chekote/Mink/downloads","issues_url":"https://api.github.com/repos/Chekote/Mink/issues{/number}","pulls_url":"https://api.github.com/repos/Chekote/Mink/pulls{/number}","milestones_url":"https://api.github.com/repos/Chekote/Mink/milestones{/number}","notifications_url":"https://api.github.com/repos/Chekote/Mink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chekote/Mink/labels{/name}","releases_url":"https://api.github.com/repos/Chekote/Mink/releases{/id}","created_at":"2014-04-10T17:26:08Z","updated_at":"2015-01-07T23:33:14Z","pushed_at":"2015-06-19T16:21:28Z","git_url":"git://github.com/Chekote/Mink.git","ssh_url":"git@github.com:Chekote/Mink.git","clone_url":"https://github.com/Chekote/Mink.git","svn_url":"https://github.com/Chekote/Mink","homepage":"http://mink.behat.org/","size":1624,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"minkphp:master","ref":"master","sha":"d95155ed2bc5ae940d78be286727a3b712c2513e","user":{"login":"minkphp","id":10380339,"avatar_url":"https://avatars.githubusercontent.com/u/10380339?v=3","gravatar_id":"","url":"https://api.github.com/users/minkphp","html_url":"https://github.com/minkphp","followers_url":"https://api.github.com/users/minkphp/followers","following_url":"https://api.github.com/users/minkphp/following{/other_user}","gists_url":"https://api.github.com/users/minkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/minkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkphp/subscriptions","organizations_url":"https://api.github.com/users/minkphp/orgs","repos_url":"https://api.github.com/users/minkphp/repos","events_url":"https://api.github.com/users/minkphp/events{/privacy}","received_events_url":"https://api.github.com/users/minkphp/received_events","type":"Organization","site_admin":false},"repo":{"id":1567795,"name":"Mink","full_name":"minkphp/Mink","owner":{"login":"minkphp","id":10380339,"avatar_url":"https://avatars.githubusercontent.com/u/10380339?v=3","gravatar_id":"","url":"https://api.github.com/users/minkphp","html_url":"https://github.com/minkphp","followers_url":"https://api.github.com/users/minkphp/followers","following_url":"https://api.github.com/users/minkphp/following{/other_user}","gists_url":"https://api.github.com/users/minkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/minkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minkphp/subscriptions","organizations_url":"https://api.github.com/users/minkphp/orgs","repos_url":"https://api.github.com/users/minkphp/repos","events_url":"https://api.github.com/users/minkphp/events{/privacy}","received_events_url":"https://api.github.com/users/minkphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minkphp/Mink","description":"PHP 5.3+ web browser emulator abstraction","fork":false,"url":"https://api.github.com/repos/minkphp/Mink","forks_url":"https://api.github.com/repos/minkphp/Mink/forks","keys_url":"https://api.github.com/repos/minkphp/Mink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minkphp/Mink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minkphp/Mink/teams","hooks_url":"https://api.github.com/repos/minkphp/Mink/hooks","issue_events_url":"https://api.github.com/repos/minkphp/Mink/issues/events{/number}","events_url":"https://api.github.com/repos/minkphp/Mink/events","assignees_url":"https://api.github.com/repos/minkphp/Mink/assignees{/user}","branches_url":"https://api.github.com/repos/minkphp/Mink/branches{/branch}","tags_url":"https://api.github.com/repos/minkphp/Mink/tags","blobs_url":"https://api.github.com/repos/minkphp/Mink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minkphp/Mink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minkphp/Mink/git/refs{/sha}","trees_url":"https://api.github.com/repos/minkphp/Mink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minkphp/Mink/statuses/{sha}","languages_url":"https://api.github.com/repos/minkphp/Mink/languages","stargazers_url":"https://api.github.com/repos/minkphp/Mink/stargazers","contributors_url":"https://api.github.com/repos/minkphp/Mink/contributors","subscribers_url":"https://api.github.com/repos/minkphp/Mink/subscribers","subscription_url":"https://api.github.com/repos/minkphp/Mink/subscription","commits_url":"https://api.github.com/repos/minkphp/Mink/commits{/sha}","git_commits_url":"https://api.github.com/repos/minkphp/Mink/git/commits{/sha}","comments_url":"https://api.github.com/repos/minkphp/Mink/comments{/number}","issue_comment_url":"https://api.github.com/repos/minkphp/Mink/issues/comments{/number}","contents_url":"https://api.github.com/repos/minkphp/Mink/contents/{+path}","compare_url":"https://api.github.com/repos/minkphp/Mink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minkphp/Mink/merges","archive_url":"https://api.github.com/repos/minkphp/Mink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minkphp/Mink/downloads","issues_url":"https://api.github.com/repos/minkphp/Mink/issues{/number}","pulls_url":"https://api.github.com/repos/minkphp/Mink/pulls{/number}","milestones_url":"https://api.github.com/repos/minkphp/Mink/milestones{/number}","notifications_url":"https://api.github.com/repos/minkphp/Mink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minkphp/Mink/labels{/name}","releases_url":"https://api.github.com/repos/minkphp/Mink/releases{/id}","created_at":"2011-04-04T16:11:16Z","updated_at":"2015-06-19T17:00:59Z","pushed_at":"2015-05-13T12:23:44Z","git_url":"git://github.com/minkphp/Mink.git","ssh_url":"git@github.com:minkphp/Mink.git","clone_url":"https://github.com/minkphp/Mink.git","svn_url":"https://github.com/minkphp/Mink","homepage":"http://mink.behat.org/","size":3557,"stargazers_count":639,"watchers_count":639,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":185,"mirror_url":null,"open_issues_count":53,"forks":185,"open_issues":53,"watchers":639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minkphp/Mink/pulls/655"},"html":{"href":"https://github.com/minkphp/Mink/pull/655"},"issue":{"href":"https://api.github.com/repos/minkphp/Mink/issues/655"},"comments":{"href":"https://api.github.com/repos/minkphp/Mink/issues/655/comments"},"review_comments":{"href":"https://api.github.com/repos/minkphp/Mink/pulls/655/comments"},"review_comment":{"href":"https://api.github.com/repos/minkphp/Mink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minkphp/Mink/pulls/655/commits"},"statuses":{"href":"https://api.github.com/repos/minkphp/Mink/statuses/1ad01008f99f1cb8aab35ce89389af0fc59de512"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":35,"deletions":1,"changed_files":2}}