PHP Class Phalcon\Test\Unit\SecurityTest

Author: Andres Gutierrez ([email protected])
Author: Nikolaos Dimopoulos ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Public Methods

Method Description
testCheckToken ( ) Tests Security::checkToken
testGetSaltBytes ( ) Tests Security::getSaltBytes
testHash ( ) Tests Security::hash
testOneTokenPerRequest ( ) Tests Security::getToken and Security::getTokenKey for generating only one token per request
testSecurityComputeHMAC ( ) Tests the HMAC computation
testSecurityConstants ( ) Tests the Security constants
testSecurityDefaults ( ) Tests the security defaults

Protected Methods

Method Description
_before ( ) executed before each test

Private Methods

Method Description
setupDI ( ) : Di Set up the environment.

Method Details

_before() protected method

executed before each test
protected _before ( )

testCheckToken() public method

Tests Security::checkToken
public testCheckToken ( )

testGetSaltBytes() public method

Tests Security::getSaltBytes
public testGetSaltBytes ( )

testHash() public method

Tests Security::hash
public testHash ( )

testOneTokenPerRequest() public method

Tests Security::getToken and Security::getTokenKey for generating only one token per request

testSecurityComputeHMAC() public method

Tests the HMAC computation
Since: 2014-09-12
Author: Nikolaos Dimopoulos ([email protected])

testSecurityConstants() public method

Tests the Security constants
Since: 2015-12-19
Author: Serghei Iakovlev ([email protected])

testSecurityDefaults() public method

Tests the security defaults