Skip to content
Snippets Groups Projects
Commit 01c75e44 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Minor fixes in the SAML SP test class.

Basically, phpdoc formatting and fixing some classes not using namespaces.
parent 489d25ef
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment