{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2711","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2711/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2711/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2711/events","html_url":"https://github.com/Codeception/Codeception/pull/2711","id":126070889,"number":2711,"title":"Refactored formats","user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Codeception/Codeception/milestones/25","html_url":"https://github.com/Codeception/Codeception/milestones/2.2","labels_url":"https://api.github.com/repos/Codeception/Codeception/milestones/25/labels","id":1370839,"number":25,"title":"2.2","description":"Next major release, including\r\n\r\n* fixes to module conflicts\r\n* multiple test formats","creator":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-10-22T17:04:57Z","updated_at":"2016-01-16T09:14:18Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2016-01-12T00:38:09Z","updated_at":"2016-01-19T00:25:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/2711","html_url":"https://github.com/Codeception/Codeception/pull/2711","diff_url":"https://github.com/Codeception/Codeception/pull/2711.diff","patch_url":"https://github.com/Codeception/Codeception/pull/2711.patch"},"body":"Test formats were reworked in order to simplify them. For instance, Cept and Cest formats may not be extended from `PHPUnit_Framework_TestCase`. New folder structure was introduced. \r\n\r\n* `Test\\Loader\\FormatName` - a class which is responsible for parsing and loading tests from a file\r\n* `Test\\FormatName` - a class representing a test\r\n* `Test\\Feature\\*` - set of mixins which are included into the most basic test file (`Codeception\\Test\\Test`)\r\n\r\nEach Codeception test implements `Codeception\\TestInterface`. \r\n\r\nTest name, filename, used modules, actors and other properties now stored in `Metadata`. So to get test name you can access `$test->getMetadata()->getName()`. In the same manner test currents can be accessed too: `$test->getMetadata()->current('env')`. So `Scenario` class was simplified to work only with scenarios and not to store additional data in it.  \r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/172691319","html_url":"https://github.com/Codeception/Codeception/pull/2711#issuecomment-172691319","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2711","id":172691319,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T00:25:22Z","updated_at":"2016-01-19T00:25:22Z","body":"So this will take another day from me to implement this :("}}