public function testConfigOverrides() { $config = (require __DIR__ . '/data/beaucallongthrottle.local.php'); $config = $config['beaucallongthrottle']['BeaucalLongThrottle\\Adapter\\Db']; unset($config['options_class']); $options = new DbAdapterOptions($config); $this->assertEquals('use_transactions_another', $options->getUseTransactions()); $this->assertEquals('db_adapter_class_another', $options->getDbAdapterClass()); $this->assertEquals('db_table_another', $options->getDbTable()); $this->assertEquals('db_date_time_format_another', $options->getDbDateTimeFormat()); $this->assertEquals('clear_all_is_cheap_another', $options->getClearAllIsCheap()); }
public function rollback() { $this->options->getUseTransactions() and $this->getConnection()->rollback(); }