PHP Class SAML2\AuthnRequestTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: simplesamlphp/saml2

Public Methods

Method 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 method

Test unmarshalling / marshalling of XML with Extensions element

testIDPlistAttributes() public method

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

testMarshallingOfSimpleRequest() public method

testRequesterIdIsAddedCorrectly() public method

Test setting a requesterID.

testRequesterIdIsReadCorrectly() public method

Test setting a requesterID.

testThatAnEncryptedNameIdCanBeDecrypted() public method

testThatAnEncryptedNameIdResultsInTheCorrectXmlStructure() public method

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 method

testThatTheSubjectIsCorrectlyRead() public method

testUnmarshalling() public method

public testUnmarshalling ( )