lithium\tests\cases\storage\SessionTest::testSingleStoreReadWrite PHP Method

testSingleStoreReadWrite() public method

    public function testSingleStoreReadWrite()
    {
        $this->assertNull(Session::read('key'));
        $this->assertTrue(Session::write('key', 'value'));
        $this->assertEqual(Session::read('key'), 'value');
        Session::reset();
        $this->assertNull(Session::read('key'));
        $this->assertFalse(Session::write('key', 'value'));
    }