public function tearDown() { $this->app['orm.em']->close(); $this->app['orm.em'] = null; Application::clearInstance(); $this->app = null; }