{"action":"created","issue":{"url":"https://api.github.com/repos/phpspec/phpspec/issues/846","labels_url":"https://api.github.com/repos/phpspec/phpspec/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/phpspec/phpspec/issues/846/comments","events_url":"https://api.github.com/repos/phpspec/phpspec/issues/846/events","html_url":"https://github.com/phpspec/phpspec/issues/846","id":130166234,"number":846,"title":"Configure phpspec with codeiginter ","user":{"login":"agarhy","id":1887480,"avatar_url":"https://avatars.githubusercontent.com/u/1887480?v=3","gravatar_id":"","url":"https://api.github.com/users/agarhy","html_url":"https://github.com/agarhy","followers_url":"https://api.github.com/users/agarhy/followers","following_url":"https://api.github.com/users/agarhy/following{/other_user}","gists_url":"https://api.github.com/users/agarhy/gists{/gist_id}","starred_url":"https://api.github.com/users/agarhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarhy/subscriptions","organizations_url":"https://api.github.com/users/agarhy/orgs","repos_url":"https://api.github.com/users/agarhy/repos","events_url":"https://api.github.com/users/agarhy/events{/privacy}","received_events_url":"https://api.github.com/users/agarhy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-31T18:45:04Z","updated_at":"2016-01-31T20:29:18Z","closed_at":null,"body":"I'm trying to configure phpspec to work with codeiginter 3\r\n\r\nhere is the composer.json\r\n```\r\n{\r\n\t\"description\": \"The CodeIgniter framework\",\r\n\t\"name\": \"codeigniter/framework\",\r\n......\r\n\t\"require-dev\": {\r\n\t\t\"mikey179/vfsStream\": \"1.1.*\",\r\n                \"phpspec/phpspec\": \"~2.0\"\r\n\t},\r\n        \"autoload\":{\r\n            \"psr-4\":{\r\n                \"\":\"application\"\r\n            }\r\n        }\r\n}\r\n```\r\n\r\nand phpspec.yaml\r\n\r\n```\r\nsuites:\r\n    controllers:\r\n        namespace: \r\n        src_path: application\r\n        spec_path: application\r\n\r\nbootstrap: spec/ci_bootstrap.php\r\n\r\n```\r\n\r\nSpec test file are being created properly in application/spec/controllers\r\nAnd when run phpspec it creates the controller class in application/controllers\r\n\r\nbut seems can not find controller class when running and keep showing \r\n```\r\n Do you want me to create `controllers\\movies` for you?\r\n```\r\n\r\ntried to use ci_bootstrap.php file as in this article http://blog.anidear.com/2012/11/using-phpspec-with-codeigniter.html\r\nbut it's not working seems supporting only phpspec-v1\r\n\r\nany idea how can properly run phpspec2 with codeiginter 3 ?\r\n\r\nCodeiginter file structure is \r\n\r\nApplication\r\n``controllers\r\n``views\r\nSystem\r\n``core\r\nVendor\r\n``phpspec\r\n"},"comment":{"url":"https://api.github.com/repos/phpspec/phpspec/issues/comments/177602076","html_url":"https://github.com/phpspec/phpspec/issues/846#issuecomment-177602076","issue_url":"https://api.github.com/repos/phpspec/phpspec/issues/846","id":177602076,"user":{"login":"mheki","id":2435655,"avatar_url":"https://avatars.githubusercontent.com/u/2435655?v=3","gravatar_id":"","url":"https://api.github.com/users/mheki","html_url":"https://github.com/mheki","followers_url":"https://api.github.com/users/mheki/followers","following_url":"https://api.github.com/users/mheki/following{/other_user}","gists_url":"https://api.github.com/users/mheki/gists{/gist_id}","starred_url":"https://api.github.com/users/mheki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheki/subscriptions","organizations_url":"https://api.github.com/users/mheki/orgs","repos_url":"https://api.github.com/users/mheki/repos","events_url":"https://api.github.com/users/mheki/events{/privacy}","received_events_url":"https://api.github.com/users/mheki/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T20:29:18Z","updated_at":"2016-01-31T20:29:18Z","body":"Have you tried to run `composer dump-autoload`?"}}