Phalcon\Test\Session\Adapter\AerospikeTest::testShouldDestroySession PHP Method

testShouldDestroySession() public method

    public function testShouldDestroySession()
    {
        $sessionId = 'abcdef123457';
        $session = new SessionHandler($this->getConfig());
        $data = ['abc' => 345, 'def' => ['foo' => 'bar'], 'zyx' => 'xyz'];
        $this->tester->haveInAerospike($sessionId, $data);
        $session->destroy($sessionId);
        $this->tester->dontSeeInAerospike($sessionId);
    }