{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2435","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2435/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2435/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2435/events","html_url":"https://github.com/Codeception/Codeception/issues/2435","id":110414092,"number":2435,"title":"[Symfony\\Component\\Debug\\Exception\\FatalErrorException]   Cannot redeclare _generated\\AcceptanceTesterActions::switchToIFrame()","user":{"login":"Rufflesaurus","id":6518995,"avatar_url":"https://avatars.githubusercontent.com/u/6518995?v=3","gravatar_id":"","url":"https://api.github.com/users/Rufflesaurus","html_url":"https://github.com/Rufflesaurus","followers_url":"https://api.github.com/users/Rufflesaurus/followers","following_url":"https://api.github.com/users/Rufflesaurus/following{/other_user}","gists_url":"https://api.github.com/users/Rufflesaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/Rufflesaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rufflesaurus/subscriptions","organizations_url":"https://api.github.com/users/Rufflesaurus/orgs","repos_url":"https://api.github.com/users/Rufflesaurus/repos","events_url":"https://api.github.com/users/Rufflesaurus/events{/privacy}","received_events_url":"https://api.github.com/users/Rufflesaurus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/InnerBrowser","name":"InnerBrowser","color":"bdc3c7"},{"url":"https://api.github.com/repos/Codeception/Codeception/labels/Laravel5","name":"Laravel5","color":"bdc3c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-08T10:06:22Z","updated_at":"2015-10-08T14:21:20Z","closed_at":null,"body":"Hey there,\r\n\r\nI am not sure if this is the right place to ask questions about problems but my current problem is:\r\n\r\nI was creating some helper files to reuse code and I am not sure how but the codecept run acceptance command throws this error:\r\n\r\n[Symfony\\Component\\Debug\\Exception\\FatalErrorException]   Cannot redeclare _generated\\AcceptanceTesterActions::switchToIFrame()\r\n\r\nI am using the Laravel5 module and the Webdriver module with chrome as a browser. \r\n\r\nI am using Codeception 2.1.3 and PHPUnit 4.8.10\r\n\r\nDoes anyone know how can I solve this problem?\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/146560925","html_url":"https://github.com/Codeception/Codeception/issues/2435#issuecomment-146560925","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2435","id":146560925,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","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},"created_at":"2015-10-08T14:21:20Z","updated_at":"2015-10-08T14:21:20Z","body":"@Rufflesaurus acceptance testing should be done without Laravel module - it is for funcitonal testing only.\r\nThe difference is how module connects to application. Laravel5 expects application to be connected internally via PHP inclusion, while WebDriver connects to application through webserver. Mixing those modules together may provide you unexpected results - as you are connecting to two different aplications! Depending on position of module in config list you are switching them - so you can not be sure how you are testing: with WebDriver or Laravel in each case.\r\n\r\nJust don't use Laravel module for acceptance testing. The only fix here is to throw exceptions when you try to load Laravel + WebDriver\r\n\r\nP.S. Not sure why error appeared only now but @Naktibalda added a method to Laravel5  which has the same signature as a method of WebDriver"}}