Gc\Session\SaveHandler\DbTableGatewayTest::setUp PHP Méthode

setUp() protected méthode

This method is called before a test is executed.
protected setUp ( ) : void
Résultat void
    protected function setUp()
    {
        $tablegatewayConfig = new DbTableGatewayOptions(array('idColumn' => 'id', 'nameColumn' => 'name', 'modifiedColumn' => 'updated_at', 'lifetimeColumn' => 'lifetime', 'dataColumn' => 'data'));
        $this->adapter = new TableGateway('core_session', GlobalAdapterFeature::getStaticAdapter());
        $this->object = new DbTableGateway($this->adapter, $tablegatewayConfig);
        $this->testArray = array('foo' => 'bar', 'bar' => array('foo' => uniqid()));
    }