/** * Called before the test functions will be executed * this function is defined in PHPUnit_TestCase and overwritten * here. * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->sequence = new Sequence(); $this->sequence->rebuildTable(); $this->sequence->set('prefix', 'TEST'); $this->sequence->set('sequence', 1); $this->sequence->save(); }
/** * {@inheritdoc} * * @since 2.0 */ protected function setUp() { $config = ConfigProvider::getInstance(); $config->set('session.provider.name', 'Alpha\\Util\\Http\\Session\\SessionProviderArray'); $sequence = new Sequence(); $sequence->rebuildTable(); $sequence->set('prefix', 'TEST'); $sequence->set('sequence', 1); $sequence->save(); }