{"action":"created","issue":{"url":"https://api.github.com/repos/orchestral/testbench/issues/85","labels_url":"https://api.github.com/repos/orchestral/testbench/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/orchestral/testbench/issues/85/comments","events_url":"https://api.github.com/repos/orchestral/testbench/issues/85/events","html_url":"https://github.com/orchestral/testbench/issues/85","id":62456709,"number":85,"title":"Shouldn't ApplicationTrait::refreshApplication() be called in setUpBeforeClass(), instead of setUp()?","user":{"login":"FractalizeR","id":318489,"avatar_url":"https://avatars.githubusercontent.com/u/318489?v=3","gravatar_id":"","url":"https://api.github.com/users/FractalizeR","html_url":"https://github.com/FractalizeR","followers_url":"https://api.github.com/users/FractalizeR/followers","following_url":"https://api.github.com/users/FractalizeR/following{/other_user}","gists_url":"https://api.github.com/users/FractalizeR/gists{/gist_id}","starred_url":"https://api.github.com/users/FractalizeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FractalizeR/subscriptions","organizations_url":"https://api.github.com/users/FractalizeR/orgs","repos_url":"https://api.github.com/users/FractalizeR/repos","events_url":"https://api.github.com/users/FractalizeR/events{/privacy}","received_events_url":"https://api.github.com/users/FractalizeR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T16:51:04Z","updated_at":"2015-03-17T23:57:58Z","closed_at":"2015-03-17T23:57:58Z","body":"```php\r\n    /**\r\n     * Setup the test environment.\r\n     *\r\n     * @return void\r\n     */\r\n    public function setUp()\r\n    {\r\n        if (! $this->app) {\r\n            $this->refreshApplication();\r\n        }\r\n    }\r\n```\r\n\r\nShouldn't this run in `setUpBeforeClass()` (once per test suite) rather than in` setUp()` (before each test)?\r\n\r\nIn this case, however, `app` member should be made static since `setUpBeforeClass` is static."},"comment":{"url":"https://api.github.com/repos/orchestral/testbench/issues/comments/82646687","html_url":"https://github.com/orchestral/testbench/issues/85#issuecomment-82646687","issue_url":"https://api.github.com/repos/orchestral/testbench/issues/85","id":82646687,"user":{"login":"crynobone","id":172966,"avatar_url":"https://avatars.githubusercontent.com/u/172966?v=3","gravatar_id":"","url":"https://api.github.com/users/crynobone","html_url":"https://github.com/crynobone","followers_url":"https://api.github.com/users/crynobone/followers","following_url":"https://api.github.com/users/crynobone/following{/other_user}","gists_url":"https://api.github.com/users/crynobone/gists{/gist_id}","starred_url":"https://api.github.com/users/crynobone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crynobone/subscriptions","organizations_url":"https://api.github.com/users/crynobone/orgs","repos_url":"https://api.github.com/users/crynobone/repos","events_url":"https://api.github.com/users/crynobone/events{/privacy}","received_events_url":"https://api.github.com/users/crynobone/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T23:57:58Z","updated_at":"2015-03-17T23:57:58Z","body":"`app` shouldn't be static, and shouldn't inherit between test."}}