{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2478","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2478/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2478/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2478/events","html_url":"https://github.com/Codeception/Codeception/pull/2478","id":113087193,"number":2478,"title":"Fix for broken paths introduced after Symfony upgraded to 2.7.5.","user":{"login":"supre","id":4636670,"avatar_url":"https://avatars.githubusercontent.com/u/4636670?v=3","gravatar_id":"","url":"https://api.github.com/users/supre","html_url":"https://github.com/supre","followers_url":"https://api.github.com/users/supre/followers","following_url":"https://api.github.com/users/supre/following{/other_user}","gists_url":"https://api.github.com/users/supre/gists{/gist_id}","starred_url":"https://api.github.com/users/supre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supre/subscriptions","organizations_url":"https://api.github.com/users/supre/orgs","repos_url":"https://api.github.com/users/supre/repos","events_url":"https://api.github.com/users/supre/events{/privacy}","received_events_url":"https://api.github.com/users/supre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/Needs%20clarification","name":"Needs clarification","color":"1abc9c"},{"url":"https://api.github.com/repos/Codeception/Codeception/labels/Symfony","name":"Symfony","color":"bdc3c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-23T19:44:15Z","updated_at":"2015-10-24T12:25:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/2478","html_url":"https://github.com/Codeception/Codeception/pull/2478","diff_url":"https://github.com/Codeception/Codeception/pull/2478.diff","patch_url":"https://github.com/Codeception/Codeception/pull/2478.patch"},"body":"We upgraded our symfony package to 2.7.5, only to find out that our codeception is broken.\r\nAfter a whole day of debugging it turns out the issue was related to the recent modifications made to the Finder component for Symfony ([#15826](https://github.com/symfony/symfony/issues/15826), [#15802](https://github.com/symfony/symfony/issues/15802), [#15803](https://github.com/symfony/symfony/issues/15803)).\r\n\r\nIn the path to the test in the suite (in our case, we have a test for each bundle), an additional `/` is added between the test and the suite, thus causing an issue in GroupLoader. i.e.:\r\n\r\nLine 109 of file Lib/GroupManager:\r\n````\r\nif ($filename == $testPattern) {\r\n    $groups[] = $group;\r\n}\r\n````\r\nWe were getting the following scenario:\r\n$filename: /path/to/suite//path/to/test\r\n$testPattern: /path/to/suite/path/to/test\r\n\r\nAnd, the if condition was failing in all cases, which meant that none of our groups was working.\r\n\r\nThe provided fix will fix the path in case it's broken but will leave it unchanged in case it's fine.\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/150804087","html_url":"https://github.com/Codeception/Codeception/pull/2478#issuecomment-150804087","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2478","id":150804087,"user":{"login":"raistlin","id":76889,"avatar_url":"https://avatars.githubusercontent.com/u/76889?v=3","gravatar_id":"","url":"https://api.github.com/users/raistlin","html_url":"https://github.com/raistlin","followers_url":"https://api.github.com/users/raistlin/followers","following_url":"https://api.github.com/users/raistlin/following{/other_user}","gists_url":"https://api.github.com/users/raistlin/gists{/gist_id}","starred_url":"https://api.github.com/users/raistlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raistlin/subscriptions","organizations_url":"https://api.github.com/users/raistlin/orgs","repos_url":"https://api.github.com/users/raistlin/repos","events_url":"https://api.github.com/users/raistlin/events{/privacy}","received_events_url":"https://api.github.com/users/raistlin/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T12:25:39Z","updated_at":"2015-10-24T12:25:39Z","body":"The additional \"/\" seems to be added by Syfmony, I've also seen this in earlier versions of Syfmony, but never caused a problem to me."}}