PHP 클래스 lithium\tests\cases\storage\session\adapter\MemoryTest

상속: extends lithium\test\Unit
파일 보기 프로젝트 열기: unionofrad/lithium

공개 메소드들

메소드 설명
setUp ( ) Initializes a new Memory adapter.
tearDown ( ) Unset the memory adapter.
testCheck ( ) Checks if the session data is empty on creation.
testClear ( ) Checks if erasing the whole session array works as expected.
testDelete ( ) Test key deletion.
testEnabled ( ) This adapter is always enabled by default as it does not rely on any external dependencies.
testIsStarted ( ) This adapter is always started when a new object is generated.
testKey ( ) Tests if a correct (and unique) key is loaded upon request.
testRead ( ) Test if reading from the memory adapter works as expected.
testWrite ( ) Writes test data into the $_session array.

메소드 상세

setUp() 공개 메소드

Initializes a new Memory adapter.
public setUp ( )

tearDown() 공개 메소드

Unset the memory adapter.
public tearDown ( )

testCheck() 공개 메소드

Checks if the session data is empty on creation.
public testCheck ( )

testClear() 공개 메소드

Checks if erasing the whole session array works as expected.
public testClear ( )

testDelete() 공개 메소드

Test key deletion.
public testDelete ( )

testEnabled() 공개 메소드

This adapter is always enabled by default as it does not rely on any external dependencies.
public testEnabled ( )

testIsStarted() 공개 메소드

This adapter is always started when a new object is generated.
public testIsStarted ( )

testKey() 공개 메소드

Tests if a correct (and unique) key is loaded upon request.
public testKey ( )

testRead() 공개 메소드

Test if reading from the memory adapter works as expected.
public testRead ( )

testWrite() 공개 메소드

Writes test data into the $_session array.
public testWrite ( )