{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4378","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4378/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4378/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4378/events","html_url":"https://github.com/magento/magento2/issues/4378","id":152557867,"number":4378,"title":"magento/framework does not require all of its dependencies","user":{"login":"punkstar","id":179072,"avatar_url":"https://avatars.githubusercontent.com/u/179072?v=3","gravatar_id":"","url":"https://api.github.com/users/punkstar","html_url":"https://github.com/punkstar","followers_url":"https://api.github.com/users/punkstar/followers","following_url":"https://api.github.com/users/punkstar/following{/other_user}","gists_url":"https://api.github.com/users/punkstar/gists{/gist_id}","starred_url":"https://api.github.com/users/punkstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punkstar/subscriptions","organizations_url":"https://api.github.com/users/punkstar/orgs","repos_url":"https://api.github.com/users/punkstar/repos","events_url":"https://api.github.com/users/punkstar/events{/privacy}","received_events_url":"https://api.github.com/users/punkstar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T13:52:18Z","updated_at":"2016-05-02T14:34:40Z","closed_at":null,"body":"We are developing our Magento 2 extensions and running continuous integration against them.  In the interest of failing fast, we're running our extension unit tests without having a full Magento 2 installation up and running.  In order to achieve this we get specific (as I think we should) about our actual requirements on the Magento 2 codebase in our `composer.json`, resulting in a file looking like:\r\n\r\n    ...\r\n    \r\n      \"require\": {\r\n        \"magento/framework\": \"100.0.*\",\r\n        \"magento/module-backend\": \"100.0.*\",\r\n        \"magento/module-store\": \"100.0.*\"\r\n      },\r\n      \"require-dev\": {\r\n        \"phpunit/phpunit\": \"4.1.0\"\r\n      },\r\n    \r\n    ...\r\n\r\nWhen attempting to use classes available in `magento/framework` we get \"class not found\" fatal errors due to `Zend\\Http` not be explicitly listed as a requirement of the package.\r\n\r\nSteps to reproduce\r\n--\r\n1. Include `\"magento/framework\": \"100.0.*\"` as a requirement in your own project's `composer.json`\r\n2. Run `composer install` to install dependencies\r\n3. Write a unit test that uses `Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager` to mock a `Magento\\Framework\\App\\Request\\Http`.\r\n\r\nExpected result\r\n--\r\n1. Test passes.\r\n\r\nActual result\r\n--\r\n\r\n    phpunit --verbose\r\n    PHPUnit 4.1.0 by Sebastian Bergmann.\r\n\r\n    Configuration read from phpunit.xml\r\n\r\n    ........PHP Fatal error:  Class 'Zend\\Http\\PhpEnvironment\\Request' not found in /Users/nrj/Desktop/builder/vendor/magento/framework/HTTP/PhpEnvironment/Request.php on line 16\r\n\r\n    Fatal error: Class 'Zend\\Http\\PhpEnvironment\\Request' not found in /Users/nrj/Desktop/builder/vendor/magento/framework/HTTP/PhpEnvironment/Request.php on line 16\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/216251809","html_url":"https://github.com/magento/magento2/issues/4378#issuecomment-216251809","issue_url":"https://api.github.com/repos/magento/magento2/issues/4378","id":216251809,"user":{"login":"adragus-inviqa","id":13104649,"avatar_url":"https://avatars.githubusercontent.com/u/13104649?v=3","gravatar_id":"","url":"https://api.github.com/users/adragus-inviqa","html_url":"https://github.com/adragus-inviqa","followers_url":"https://api.github.com/users/adragus-inviqa/followers","following_url":"https://api.github.com/users/adragus-inviqa/following{/other_user}","gists_url":"https://api.github.com/users/adragus-inviqa/gists{/gist_id}","starred_url":"https://api.github.com/users/adragus-inviqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adragus-inviqa/subscriptions","organizations_url":"https://api.github.com/users/adragus-inviqa/orgs","repos_url":"https://api.github.com/users/adragus-inviqa/repos","events_url":"https://api.github.com/users/adragus-inviqa/events{/privacy}","received_events_url":"https://api.github.com/users/adragus-inviqa/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T14:34:40Z","updated_at":"2016-05-02T14:34:40Z","body":"Similar: https://github.com/magento/magento2/issues/3809"}}