{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/3618","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/3618/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/3618/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/3618/events","html_url":"https://github.com/Codeception/Codeception/issues/3618","id":183821811,"number":3618,"title":"Fails to inject Step dependency into Cest","user":{"login":"chrisrichard","id":1100888,"avatar_url":"https://avatars.githubusercontent.com/u/1100888?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisrichard","html_url":"https://github.com/chrisrichard","followers_url":"https://api.github.com/users/chrisrichard/followers","following_url":"https://api.github.com/users/chrisrichard/following{/other_user}","gists_url":"https://api.github.com/users/chrisrichard/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisrichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisrichard/subscriptions","organizations_url":"https://api.github.com/users/chrisrichard/orgs","repos_url":"https://api.github.com/users/chrisrichard/repos","events_url":"https://api.github.com/users/chrisrichard/events{/privacy}","received_events_url":"https://api.github.com/users/chrisrichard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-18T22:41:33Z","updated_at":"2016-10-19T14:45:53Z","closed_at":null,"body":"I created step Foo using codecept generate:stepobject acceptance Foo. This worked OK before switching to PHP7.\r\n\r\n\r\n```bash\r\nTest  tests/acceptance/myTestsCest.php:test1\r\n                                                                                                                                     \r\n[InjectionException] Failed to inject dependencies in instance of 'MyTestsCest'. Class Step\\Acceptance\\Foo does not exist  \r\n```                                                                                                                               \r\n\r\n```php\r\n<?php\r\nuse Step\\Acceptance\\Foo;\r\n\r\nclass MyTestsCest {\r\n\r\n    function test1(Foo $I) {\r\n```\r\n\r\n### Details\r\n\r\n* Codeception version: 2.2.5\r\n* PHP Version: 7\r\n* Operating System: Ubuntu\r\n* Installation type: Composer\r\n* Suite configuration:\r\n\r\n```yml\r\nclass_name: AcceptanceTester\r\nmodules:\r\n    enabled:\r\n        - WebDriver\r\n        - \\Helper\\Acceptance\r\n        - Asserts\r\n        - Db\r\n        - Doctrine2\r\n    config:\r\n        WebDriver:\r\n            url: 'http://test.myco.dev'\r\n            browser: chrome\r\n            wait: 0\r\n            window_size: 1440x1080\r\n        Db:\r\n            dsn: 'pgsql:host=localhost;dbname=myco'\r\n            user: 'myuser'\r\n            password: '...'\r\n            dump: tests/_data/dump.sql\r\n            populate: true\r\n            cleanup: false\r\n        Doctrine2:\r\n            connection_callback: ['MyCo\\Base', 'getManager']\r\n            cleanup: false\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/254835068","html_url":"https://github.com/Codeception/Codeception/issues/3618#issuecomment-254835068","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/3618","id":254835068,"user":{"login":"chrisrichard","id":1100888,"avatar_url":"https://avatars.githubusercontent.com/u/1100888?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisrichard","html_url":"https://github.com/chrisrichard","followers_url":"https://api.github.com/users/chrisrichard/followers","following_url":"https://api.github.com/users/chrisrichard/following{/other_user}","gists_url":"https://api.github.com/users/chrisrichard/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisrichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisrichard/subscriptions","organizations_url":"https://api.github.com/users/chrisrichard/orgs","repos_url":"https://api.github.com/users/chrisrichard/repos","events_url":"https://api.github.com/users/chrisrichard/events{/privacy}","received_events_url":"https://api.github.com/users/chrisrichard/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T14:45:53Z","updated_at":"2016-10-19T14:45:53Z","body":"tests/_support/Step/Acceptance/Foo.php\r\n\r\nThis is where the generate:stepobject task created it.\r\n\r\nMyTestsCest is at tests/acceptance/myTestsCest.php"}}
{"actor":{"display_login":"chrisrichard"}}