{"action":"created","issue":{"url":"https://api.github.com/repos/hoaproject/Core/issues/90","labels_url":"https://api.github.com/repos/hoaproject/Core/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/hoaproject/Core/issues/90/comments","events_url":"https://api.github.com/repos/hoaproject/Core/issues/90/events","html_url":"https://github.com/hoaproject/Core/issues/90","id":93622736,"number":90,"title":"Hoa/Core errors when loaded twice","user":{"login":"evert","id":178960,"avatar_url":"https://avatars.githubusercontent.com/u/178960?v=3","gravatar_id":"","url":"https://api.github.com/users/evert","html_url":"https://github.com/evert","followers_url":"https://api.github.com/users/evert/followers","following_url":"https://api.github.com/users/evert/following{/other_user}","gists_url":"https://api.github.com/users/evert/gists{/gist_id}","starred_url":"https://api.github.com/users/evert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evert/subscriptions","organizations_url":"https://api.github.com/users/evert/orgs","repos_url":"https://api.github.com/users/evert/repos","events_url":"https://api.github.com/users/evert/events{/privacy}","received_events_url":"https://api.github.com/users/evert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoaproject/Core/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/hoaproject/Core/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-07-07T20:38:19Z","updated_at":"2015-07-09T09:59:43Z","closed_at":null,"body":"In our scenario, we have a project that depends on Hoa\\Bench.\r\n\r\nWe also have globally installed packages (`composer global`), in particular phpunit and other Hoa dependencies.\r\n\r\nThe `phpunit` binary is executed globally for our package. This means that there are two composer autoloaders active, each load a copy of `Hoa\\Core`, even though the global one does not require it.\r\n\r\nThis causes this error:\r\n\r\n```php\r\nphpunit --configuration tests/phpunit.xml\r\nHoa main file (Core.php) must be included once.\r\n```\r\n\r\nThe root cause for this, is that Core.php is loaded regardless of it it's ever used or not.\r\n\r\nSource: https://github.com/fruux/sabre-vobject/issues/238\r\n\r\nIt would be nice if there is a solution to this =) Hope all is well! \r\n"},"comment":{"url":"https://api.github.com/repos/hoaproject/Core/issues/comments/119894817","html_url":"https://github.com/hoaproject/Core/issues/90#issuecomment-119894817","issue_url":"https://api.github.com/repos/hoaproject/Core/issues/90","id":119894817,"user":{"login":"harikt","id":120454,"avatar_url":"https://avatars.githubusercontent.com/u/120454?v=3","gravatar_id":"","url":"https://api.github.com/users/harikt","html_url":"https://github.com/harikt","followers_url":"https://api.github.com/users/harikt/followers","following_url":"https://api.github.com/users/harikt/following{/other_user}","gists_url":"https://api.github.com/users/harikt/gists{/gist_id}","starred_url":"https://api.github.com/users/harikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harikt/subscriptions","organizations_url":"https://api.github.com/users/harikt/orgs","repos_url":"https://api.github.com/users/harikt/repos","events_url":"https://api.github.com/users/harikt/events{/privacy}","received_events_url":"https://api.github.com/users/harikt/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T09:59:43Z","updated_at":"2015-07-09T09:59:43Z","body":"Thank you for the clarification @Hywan ."}}