lithium\tests\cases\storage\SessionTest::testSingleStoreReadWrite PHP 메소드

testSingleStoreReadWrite() 공개 메소드

    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'));
    }