{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12765","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12765/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12765/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12765/events","html_url":"https://github.com/yiisoft/yii2/issues/12765","id":183607631,"number":12765,"title":" Class 'codeception\\fixtures\\XxxFixture' not found ","user":{"login":"xiaoxing598","id":5615719,"avatar_url":"https://avatars.githubusercontent.com/u/5615719?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaoxing598","html_url":"https://github.com/xiaoxing598","followers_url":"https://api.github.com/users/xiaoxing598/followers","following_url":"https://api.github.com/users/xiaoxing598/following{/other_user}","gists_url":"https://api.github.com/users/xiaoxing598/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoxing598/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoxing598/subscriptions","organizations_url":"https://api.github.com/users/xiaoxing598/orgs","repos_url":"https://api.github.com/users/xiaoxing598/repos","events_url":"https://api.github.com/users/xiaoxing598/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoxing598/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-18T07:16:43Z","updated_at":"2016-10-18T09:19:24Z","closed_at":null,"body":"I got the following error while I was running the test method:\r\n```\r\nPHP Fatal error:  Class 'codeception\\fixtures\\XxxFixture' not found in D:\\PhpProjects\\example\\tests\\codeception\\unit\\models\\XxxTest.php on line 14\r\nPHP Stack trace:\r\nPHP   1. {main}() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\codeception\\codeception\\codecept:0\r\nPHP   2. Codeception\\Application->run() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\codeception\\codeception\\codecept:33\r\nPHP   3. Symfony\\Component\\Console\\Application->run() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\codeception\\codeception\\src\\Codeception\\Application.php:103\r\nPHP   4. Symfony\\Component\\Console\\Application->doRun() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:118\r\nPHP   5. Symfony\\Component\\Console\\Application->doRunCommand() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:187\r\nPHP   6. Symfony\\Component\\Console\\Command\\Command->run() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:820\r\nPHP   7. Codeception\\Command\\Run->execute() C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Command\\Command.php:256\r\n\r\n```\r\n\r\n```\r\n<?php\r\n\r\nnamespace codeception\\fixtures;\r\n\r\nuse yii\\test\\ActiveFixture;\r\n\r\nclass XxxFixture extends ActiveFixture\r\n{\r\n    public $modelClass = 'app\\models\\Xxx';\r\n}\r\n```\r\n\r\n```\r\n<?php\r\n\r\nnamespace tests\\codeception\\unit\\models;\r\n\r\nuse app\\models\\Xxx;\r\nuse codeception\\fixtures\\XxxFixture;\r\nuse yii\\codeception\\TestCase;\r\n\r\nclass XxxTest extends TestCase\r\n{\r\n    public function fixtures()\r\n    {\r\n        return [\r\n            'profiles' => XxxFixture::className(),\r\n        ];\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/254452959","html_url":"https://github.com/yiisoft/yii2/issues/12765#issuecomment-254452959","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12765","id":254452959,"user":{"login":"xiaoxing598","id":5615719,"avatar_url":"https://avatars.githubusercontent.com/u/5615719?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaoxing598","html_url":"https://github.com/xiaoxing598","followers_url":"https://api.github.com/users/xiaoxing598/followers","following_url":"https://api.github.com/users/xiaoxing598/following{/other_user}","gists_url":"https://api.github.com/users/xiaoxing598/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoxing598/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoxing598/subscriptions","organizations_url":"https://api.github.com/users/xiaoxing598/orgs","repos_url":"https://api.github.com/users/xiaoxing598/repos","events_url":"https://api.github.com/users/xiaoxing598/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoxing598/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T09:19:24Z","updated_at":"2016-10-18T09:19:24Z","body":"@dynasource \r\n\r\nI created this class in IDE, in accordance with the document requirement inherited from `ActiveFixture`"}}
{"actor":{"display_login":"xiaoxing598"}}