{"action":"closed","number":1407,"pull_request":{"url":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407","id":25579153,"html_url":"https://github.com/zendframework/zf2-documentation/pull/1407","diff_url":"https://github.com/zendframework/zf2-documentation/pull/1407.diff","patch_url":"https://github.com/zendframework/zf2-documentation/pull/1407.patch","issue_url":"https://api.github.com/repos/zendframework/zf2-documentation/issues/1407","number":1407,"state":"closed","locked":false,"title":"Failed using composer's autoload file","user":{"login":"andy-b-84","id":1503518,"avatar_url":"https://avatars.githubusercontent.com/u/1503518?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-b-84","html_url":"https://github.com/andy-b-84","followers_url":"https://api.github.com/users/andy-b-84/followers","following_url":"https://api.github.com/users/andy-b-84/following{/other_user}","gists_url":"https://api.github.com/users/andy-b-84/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-b-84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-b-84/subscriptions","organizations_url":"https://api.github.com/users/andy-b-84/orgs","repos_url":"https://api.github.com/users/andy-b-84/repos","events_url":"https://api.github.com/users/andy-b-84/events{/privacy}","received_events_url":"https://api.github.com/users/andy-b-84/received_events","type":"User","site_admin":false},"body":"I tried to launch my Mint's version of PHPUnit, but it couldn't load my project's autoload files.\r\n\r\nThis resulted in the following error : + 1 :\r\n```\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP Fatal error:  Class 'Album\\Controller\\AlbumController' not found in /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php on line 170\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP Stack trace:\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   1. {main}() /usr/bin/phpunit:0\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:129\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:176\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   5. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:349\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   6. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   7. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   8. PHPUnit_Framework_TestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:775\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP   9. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:783\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  10. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:648\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  11. PHPUnit_Framework_TestCase->runTest() /usr/share/php/PHPUnit/Framework/TestCase.php:838\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  12. ReflectionMethod->invokeArgs() /usr/share/php/PHPUnit/Framework/TestCase.php:983\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  13. AlbumTest\\Controller\\AlbumControllerTest->testIndexActionCanBeAccessed() /usr/share/php/PHPUnit/Framework/TestCase.php:983\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  14. Zend\\Test\\PHPUnit\\Controller\\AbstractControllerTestCase->dispatch() /home/andy/workspace/zf2/module/Album/test/AlbumTest/Controller/AlbumControllerTest.php:28\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  15. Zend\\Mvc\\Application->run() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:288\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  16. Zend\\EventManager\\EventManager->trigger() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:313\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  17. Zend\\EventManager\\EventManager->triggerListeners() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:207\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  18. call_user_func() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  19. Zend\\Mvc\\DispatchListener->onDispatch() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  20. Zend\\Mvc\\Controller\\ControllerManager->get() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php:97\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  21. Zend\\ServiceManager\\AbstractPluginManager->get() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/ControllerManager.php:137\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  22. Zend\\ServiceManager\\ServiceManager->get() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php:103\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  23. Zend\\ServiceManager\\ServiceManager->create() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:504\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  24. Zend\\ServiceManager\\ServiceManager->doCreate() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:572\r\n[05-Dec-2014 15:56:58 Europe/Paris] PHP  25. Zend\\ServiceManager\\AbstractPluginManager->createFromInvokable() /home/andy/workspace/zf2/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:616\r\n[05-Dec-2014 16:04:11 Europe/Paris] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '/home/andy/workspace/zf2/vendor/bin/phpunit', file extension (or combination) not recognised or the directory does not exist' in /tmp/ide-phpunit.php:162\r\n```\r\n\r\nThe only way I found, in order to make PHPUnit use Composer's auto-generated `autoload.php` file, without rewriting the whole Module.php file, was to add phpunit to composer's require-dev dependencies, then use this specific phpunit version to run my tests.","created_at":"2014-12-05T15:47:21Z","updated_at":"2015-01-13T21:41:58Z","closed_at":"2015-01-13T21:41:58Z","merged_at":"2015-01-13T21:41:58Z","merge_commit_sha":"1ac18abeb3bb9921604d0c393b5525932e0c5479","assignee":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407/commits","review_comments_url":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407/comments","review_comment_url":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/comments/{number}","comments_url":"https://api.github.com/repos/zendframework/zf2-documentation/issues/1407/comments","statuses_url":"https://api.github.com/repos/zendframework/zf2-documentation/statuses/dffda2657a69f56ce641f0979f43cc5cfcd98226","head":{"label":"andy-b-84:patch-2","ref":"patch-2","sha":"dffda2657a69f56ce641f0979f43cc5cfcd98226","user":{"login":"andy-b-84","id":1503518,"avatar_url":"https://avatars.githubusercontent.com/u/1503518?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-b-84","html_url":"https://github.com/andy-b-84","followers_url":"https://api.github.com/users/andy-b-84/followers","following_url":"https://api.github.com/users/andy-b-84/following{/other_user}","gists_url":"https://api.github.com/users/andy-b-84/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-b-84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-b-84/subscriptions","organizations_url":"https://api.github.com/users/andy-b-84/orgs","repos_url":"https://api.github.com/users/andy-b-84/repos","events_url":"https://api.github.com/users/andy-b-84/events{/privacy}","received_events_url":"https://api.github.com/users/andy-b-84/received_events","type":"User","site_admin":false},"repo":{"id":27597459,"name":"zf2-documentation","full_name":"andy-b-84/zf2-documentation","owner":{"login":"andy-b-84","id":1503518,"avatar_url":"https://avatars.githubusercontent.com/u/1503518?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-b-84","html_url":"https://github.com/andy-b-84","followers_url":"https://api.github.com/users/andy-b-84/followers","following_url":"https://api.github.com/users/andy-b-84/following{/other_user}","gists_url":"https://api.github.com/users/andy-b-84/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-b-84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-b-84/subscriptions","organizations_url":"https://api.github.com/users/andy-b-84/orgs","repos_url":"https://api.github.com/users/andy-b-84/repos","events_url":"https://api.github.com/users/andy-b-84/events{/privacy}","received_events_url":"https://api.github.com/users/andy-b-84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andy-b-84/zf2-documentation","description":"Zend Framework 2 documentation sources","fork":true,"url":"https://api.github.com/repos/andy-b-84/zf2-documentation","forks_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/forks","keys_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/teams","hooks_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/hooks","issue_events_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/events","assignees_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/tags","blobs_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/languages","stargazers_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/stargazers","contributors_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/contributors","subscribers_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/subscribers","subscription_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/subscription","commits_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/issues/comments/{number}","contents_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/merges","archive_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/downloads","issues_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/labels{/name}","releases_url":"https://api.github.com/repos/andy-b-84/zf2-documentation/releases{/id}","created_at":"2014-12-05T15:30:02Z","updated_at":"2014-12-05T15:30:06Z","pushed_at":"2015-01-06T08:16:19Z","git_url":"git://github.com/andy-b-84/zf2-documentation.git","ssh_url":"git@github.com:andy-b-84/zf2-documentation.git","clone_url":"https://github.com/andy-b-84/zf2-documentation.git","svn_url":"https://github.com/andy-b-84/zf2-documentation","homepage":null,"size":22566,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"zendframework:master","ref":"master","sha":"cfe8a906c59eee5acf5c0147d5c678856a532978","user":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"repo":{"id":4959563,"name":"zf2-documentation","full_name":"zendframework/zf2-documentation","owner":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendframework/zf2-documentation","description":"Zend Framework 2 documentation sources","fork":false,"url":"https://api.github.com/repos/zendframework/zf2-documentation","forks_url":"https://api.github.com/repos/zendframework/zf2-documentation/forks","keys_url":"https://api.github.com/repos/zendframework/zf2-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendframework/zf2-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendframework/zf2-documentation/teams","hooks_url":"https://api.github.com/repos/zendframework/zf2-documentation/hooks","issue_events_url":"https://api.github.com/repos/zendframework/zf2-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/zendframework/zf2-documentation/events","assignees_url":"https://api.github.com/repos/zendframework/zf2-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/zendframework/zf2-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/zendframework/zf2-documentation/tags","blobs_url":"https://api.github.com/repos/zendframework/zf2-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendframework/zf2-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendframework/zf2-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendframework/zf2-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendframework/zf2-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/zendframework/zf2-documentation/languages","stargazers_url":"https://api.github.com/repos/zendframework/zf2-documentation/stargazers","contributors_url":"https://api.github.com/repos/zendframework/zf2-documentation/contributors","subscribers_url":"https://api.github.com/repos/zendframework/zf2-documentation/subscribers","subscription_url":"https://api.github.com/repos/zendframework/zf2-documentation/subscription","commits_url":"https://api.github.com/repos/zendframework/zf2-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendframework/zf2-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendframework/zf2-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendframework/zf2-documentation/issues/comments/{number}","contents_url":"https://api.github.com/repos/zendframework/zf2-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/zendframework/zf2-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendframework/zf2-documentation/merges","archive_url":"https://api.github.com/repos/zendframework/zf2-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendframework/zf2-documentation/downloads","issues_url":"https://api.github.com/repos/zendframework/zf2-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/zendframework/zf2-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/zendframework/zf2-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/zendframework/zf2-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendframework/zf2-documentation/labels{/name}","releases_url":"https://api.github.com/repos/zendframework/zf2-documentation/releases{/id}","created_at":"2012-07-09T14:48:47Z","updated_at":"2015-01-01T20:52:44Z","pushed_at":"2015-01-13T21:41:59Z","git_url":"git://github.com/zendframework/zf2-documentation.git","ssh_url":"git@github.com:zendframework/zf2-documentation.git","clone_url":"https://github.com/zendframework/zf2-documentation.git","svn_url":"https://github.com/zendframework/zf2-documentation","homepage":null,"size":33900,"stargazers_count":189,"watchers_count":189,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":689,"mirror_url":null,"open_issues_count":78,"forks":689,"open_issues":78,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407"},"html":{"href":"https://github.com/zendframework/zf2-documentation/pull/1407"},"issue":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/issues/1407"},"comments":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/issues/1407/comments"},"review_comments":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407/comments"},"review_comment":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/pulls/1407/commits"},"statuses":{"href":"https://api.github.com/repos/zendframework/zf2-documentation/statuses/dffda2657a69f56ce641f0979f43cc5cfcd98226"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"comments":3,"review_comments":6,"commits":2,"additions":19,"deletions":0,"changed_files":1}}