function tearDown()
 {
     Context::set();
     // Nullify the context for next run.
     TestingConfiguration::tearDownConfiguration();
     // And the default config
 }
 public function setUp()
 {
     parent::setUp();
     // Merge db and queue test configs.
     $config = TestingConfiguration::loadConfigWithFileOverrides(array(__DIR__ . '/data/config_smashpig_db.yaml', __DIR__ . '/data/config_queue.yaml'));
     Context::initWithLogger($config);
     $this->pendingDb = PendingDatabase::get();
     $this->pendingDb->createTable();
     $this->paymentsInitialDb = PaymentsInitialDatabase::get();
     $this->paymentsInitialDb->createTable();
 }