/** * After hook. * * @param \Codeception\TestCase $test */ public function _after(\Codeception\TestCase $test) { if ($this->app['db'] && $this->config['cleanup']) { $this->app['db']->rollback(); } if ($missedEvents = $this->client->missedEvents()) { $test->fail('The following events did not fire: ' . implode(',', $missedEvents)); } }