Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
01c75e44
Commit
01c75e44
authored
8 years ago
by
Jaime Pérez
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
+11
-7
11 additions, 7 deletions
tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
with
11 additions
and
7 deletions
tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
+
11
−
7
View file @
01c75e44
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment