PHP Class lithium\tests\cases\security\validation\RequestTokenTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_storage

Public Methods

Method Description
read ( $key )
setUp ( )
tearDown ( )
testConfiguration ( ) Tests that class dependencies can be reconfigured.
testKeyMatching ( ) Tests that a random sequence of keys and tokens properly match one another.
testTokenFromRequestObject ( ) Tests extracting a key from a Request object and matching it against a token.
testTokenGeneration ( ) Tests proper generation of secure tokens.
testTokenGenerationWithProvidedAlgo ( )
write ( $key, $val )

Method Details

read() public static method

public static read ( $key )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testConfiguration() public method

Tests that class dependencies can be reconfigured.
public testConfiguration ( )

testKeyMatching() public method

Tests that a random sequence of keys and tokens properly match one another.
public testKeyMatching ( )

testTokenFromRequestObject() public method

Tests extracting a key from a Request object and matching it against a token.

testTokenGeneration() public method

Tests proper generation of secure tokens.
public testTokenGeneration ( )

testTokenGenerationWithProvidedAlgo() public method

write() public static method

public static write ( $key, $val )

Property Details

$_storage protected static property

protected static $_storage