PHP Class Phalcon\Test\Unit\SecurityTest

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
_before ( ) executed before each test

Private Methods

Méthode Description
setupDI ( ) : Di Set up the environment.

Method Details

_before() protected méthode

executed before each test
protected _before ( )

testCheckToken() public méthode

Tests Security::checkToken
public testCheckToken ( )

testGetSaltBytes() public méthode

Tests Security::getSaltBytes
public testGetSaltBytes ( )

testHash() public méthode

Tests Security::hash
public testHash ( )

testOneTokenPerRequest() public méthode

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

testSecurityComputeHMAC() public méthode

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

testSecurityConstants() public méthode

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

testSecurityDefaults() public méthode

Tests the security defaults