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

testClear() public method

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