PHP Class SAML2\AuthnRequestTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: simplesamlphp/saml2

Méthodes publiques

Méthode Description
testExtensionOrdering ( ) Test unmarshalling / marshalling of XML with Extensions element
testIDPlistAttributes ( ) Test for setting IDPEntry values via setIDPList.
testMarshallingOfSimpleRequest ( )
testRequesterIdIsAddedCorrectly ( ) Test setting a requesterID.
testRequesterIdIsReadCorrectly ( ) Test setting a requesterID.
testThatAnEncryptedNameIdCanBeDecrypted ( )
testThatAnEncryptedNameIdResultsInTheCorrectXmlStructure ( ) Due to the fact that the symmetric key is generated each time, we cannot test whether or not the resulting XML matches a specific XML, but we can test whether or not the resulting structure is actually correct, conveying all information required to decrypt the NameId.
testThatTheSubjectCanBeSetBySettingTheNameId ( )
testThatTheSubjectIsCorrectlyRead ( )
testUnmarshalling ( )

Method Details

testExtensionOrdering() public méthode

Test unmarshalling / marshalling of XML with Extensions element

testIDPlistAttributes() public méthode

Tests legacy support (single string), array of attributes, and skipping of unknown attributes.

testMarshallingOfSimpleRequest() public méthode

testRequesterIdIsAddedCorrectly() public méthode

Test setting a requesterID.

testRequesterIdIsReadCorrectly() public méthode

Test setting a requesterID.

testThatAnEncryptedNameIdCanBeDecrypted() public méthode

testThatAnEncryptedNameIdResultsInTheCorrectXmlStructure() public méthode

Due to the fact that the symmetric key is generated each time, we cannot test whether or not the resulting XML matches a specific XML, but we can test whether or not the resulting structure is actually correct, conveying all information required to decrypt the NameId.

testThatTheSubjectCanBeSetBySettingTheNameId() public méthode

testThatTheSubjectIsCorrectlyRead() public méthode

testUnmarshalling() public méthode

public testUnmarshalling ( )