diff options
author | Jaime Pérez <jaime.perez@uninett.no> | 2016-08-08 11:58:28 +0200 |
---|---|---|
committer | Jaime Pérez <jaime.perez@uninett.no> | 2016-08-08 11:58:28 +0200 |
commit | 01c75e449c0a838fa824f5b1f1c78a005c514813 (patch) | |
tree | b862039e2a38cfdb5cf23889fc45f47bf976796d | |
parent | 489d25ef48ceadb5991d5acced2e306d5016101d (diff) | |
download | simplesamlphp-01c75e449c0a838fa824f5b1f1c78a005c514813.zip simplesamlphp-01c75e449c0a838fa824f5b1f1c78a005c514813.tar.gz simplesamlphp-01c75e449c0a838fa824f5b1f1c78a005c514813.tar.bz2 |
Minor fixes in the SAML SP test class.
Basically, phpdoc formatting and fixing some classes not using namespaces.
-rw-r--r-- | tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php index a409b17..aeaa357 100644 --- a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php +++ b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php @@ -124,12 +124,13 @@ class SP_Test extends \PHPUnit_Framework_TestCase } - /** Create a SAML AuthnRequest using sspmod_saml_Auth_Source_SP + /** + * Create a SAML AuthnRequest using sspmod_saml_Auth_Source_SP * * @param array $state The state array to use in the test. This is an array of the parameters described in section * 2 of https://simplesamlphp.org/docs/development/saml:sp * - * @return SAML2_AuthnRequest The AuthnRequest generated. + * @return \SAML2\AuthnRequest The AuthnRequest generated. */ private function createAuthnRequest($state = array()) { @@ -175,7 +176,8 @@ class SP_Test extends \PHPUnit_Framework_TestCase } - /** Test setting a Subject + /** + * Test setting a Subject * @test * */ public function testNameID() @@ -184,7 +186,7 @@ class SP_Test extends \PHPUnit_Framework_TestCase 'saml:NameID' => array('Value' => 'user@example.org', 'Format' => \SAML2\Constants::NAMEID_UNSPECIFIED) ); - /** @var \SAML2_AuthnRequest $ar */ + /** @var \SAML2\AuthnRequest $ar */ $ar = $this->createAuthnRequest($state); $nameID = $ar->getNameId(); @@ -206,7 +208,8 @@ class SP_Test extends \PHPUnit_Framework_TestCase } - /** Test setting an AuthnConextClassRef + /** + * Test setting an AuthnConextClassRef * @test * */ public function testAuthnContextClassRef() @@ -215,7 +218,7 @@ class SP_Test extends \PHPUnit_Framework_TestCase 'saml:AuthnContextClassRef' => 'http://example.com/myAuthnContextClassRef' ); - /** @var \SAML2_AuthnRequest $ar */ + /** @var \SAML2\AuthnRequest $ar */ $ar = $this->createAuthnRequest($state); $a = $ar->getRequestedAuthnContext(); @@ -234,7 +237,8 @@ class SP_Test extends \PHPUnit_Framework_TestCase } - /** Test setting ForcedAuthn + /** + * Test setting ForcedAuthn * @test * */ public function testForcedAuthn() |