lithium\tests\cases\storage\session\adapter\MemoryTest::testClear PHP Method

testClear() public method

Checks if erasing the whole session array works as expected.
public testClear ( )
    public function testClear()
    {
        $this->Memory->_session['foobar'] = 'foo';
        $closure = $this->Memory->clear();
        $this->assertInternalType('callable', $closure);
        $result = $closure($this->Memory, array(), null);
        $this->assertEmpty($this->Memory->_session);
    }