src/Mailtrap.php
public function _after(\Codeception\TestCase $test)
  {
    if(isset($this->config['deleteEmailsAfterScenario']) && $this->config['deleteEmailsAfterScenario'])
    {
      $this->deleteAllEmails();
    }
  }
public function _after(\Codeception\TestCase $test)
  {
    if(isset($this->config['deleteEmailsAfterScenario']) && $this->config['deleteEmailsAfterScenario'])
    {
      $this->deleteAllEmails();
    }
  }
Method executed after each scenario