PHP Class lithium\tests\cases\storage\session\adapter\MemoryTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method Description
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.

Method Details

setUp() public method

Initializes a new Memory adapter.
public setUp ( )

tearDown() public method

Unset the memory adapter.
public tearDown ( )

testCheck() public method

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

testClear() public method

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

testDelete() public method

Test key deletion.
public testDelete ( )

testEnabled() public method

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

testIsStarted() public method

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

testKey() public method

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

testRead() public method

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

testWrite() public method

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