public static function tearDownAfterClass()
 {
     // Drop columns created for this test
     static::$_customFields->dropColumn('col_text');
     static::$_customFields->dropColumn('col_clob');
     static::$_customFields->dropColumn('col_integer');
     static::$_customFields->dropColumn('col_float');
     static::$_customFields->dropColumn('col_date');
     parent::tearDownAfterClass();
 }
 public function setUp()
 {
     // GroupInfo::initialize() table has a dependency on Model\Config which
     // can have side effects on other tests. For better test isolation, set
     // up a GroupInfo instance with a Model\Config mock object. Every test
     // that relies on the GroupInfo table should override the
     // Database\Table\GroupInfo service with $this->_groupInfo.
     // The setup is done only once, but cannot be done in setUpBeforeClass()
     // because mock objects cannot be created in a static method.
     if (!$this->_config) {
         $this->_config = $this->createMock('Model\\Config');
         $this->_config->method('__get')->willReturnMap(array(array('groupCacheExpirationInterval', 30)));
         $serviceManager = $this->createMock('Zend\\ServiceManager\\ServiceManager');
         $serviceManager->method('get')->willReturnMap(array(array('Db', static::$serviceManager->get('Db')), array('Database\\Nada', static::$serviceManager->get('Database\\Nada')), array('Library\\Logger', static::$serviceManager->get('Library\\Logger')), array('Model\\Config', $this->_config), array('Model\\Group\\Group', static::$serviceManager->get('Model\\Group\\Group'))));
         $this->_groupInfo = new \Database\Table\GroupInfo($serviceManager);
         $this->_groupInfo->setSchema(true);
         $this->_groupInfo->initialize();
     }
     return parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->_auth = clone static::$serviceManager->get('Zend\\Authentication\\AuthenticationService');
 }