Example #1
0
 /**
  * {@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();
 }
Example #2
0
 /**
  * Testing that sequence prefixes are uppercase.
  *
  * @since 1.0
  */
 public function testPrefixValidation()
 {
     try {
         $this->sequence->set('prefix', 'bad');
     } catch (IllegalArguementException $e) {
         $this->assertEquals($this->sequence->getPropObject('prefix')->getHelper(), $e->getMessage(), 'Testing that sequence prefixes are uppercase');
     }
 }