99use SimpleSAML \Assert \AssertionFailedException ;
1010use SimpleSAML \Configuration ;
1111use SimpleSAML \Error \Exception ;
12- use SimpleSAML \SAML2 \{AuthnRequest , LogoutRequest };
1312use SimpleSAML \SAML2 \Constants as C ;
1413use SimpleSAML \SAML2 \Exception \Protocol \{NoAvailableIDPException , NoSupportedIDPException };
1514use SimpleSAML \SAML2 \Utils \XPath ;
1615use SimpleSAML \SAML2 \XML \saml \AuthnContextClassRef ;
1716use SimpleSAML \SAML2 \XML \saml \NameID ;
17+ use SimpleSAML \SAML2 \XML \samlp \{AuthnRequest , LogoutRequest };
1818use SimpleSAML \SAML2 \XML \samlp \{IDPEntry , IDPList };
1919use SimpleSAML \Test \Metadata \MetaDataStorageSourceTest ;
2020use SimpleSAML \TestUtils \ClearStateTestCase ;
@@ -120,15 +120,15 @@ protected function setUp(): void
120120 * @param array $state The state array to use in the test. This is an array of the parameters described in section
121121 * 2 of https://simplesamlphp.org/docs/development/saml:sp
122122 *
123- * @return \SimpleSAML\SAML2\AuthnRequest The AuthnRequest generated.
123+ * @return \SimpleSAML\SAML2\XML\samlp\ AuthnRequest The AuthnRequest generated.
124124 */
125125 private function createAuthnRequest (array $ state = []): AuthnRequest
126126 {
127127 $ info = ['AuthId ' => 'default-sp ' ];
128128 $ config = ['entityID ' => 'urn:x-simplesamlphp:example-sp ' ];
129129 $ as = new SpTester ($ info , $ config );
130130
131- /** @var \SimpleSAML\SAML2\AuthnRequest $ar */
131+ /** @var \SimpleSAML\SAML2\XML\samlp\ AuthnRequest $ar */
132132 $ ar = null ;
133133 try {
134134 $ as ->startSSO2Test ($ this ->getIdpMetadata (), $ state );
@@ -147,15 +147,15 @@ private function createAuthnRequest(array $state = []): AuthnRequest
147147 * @param array $state The state array to use in the test. This is an array of the parameters described in section
148148 * 2 of https://simplesamlphp.org/docs/development/saml:sp
149149 *
150- * @return \SimpleSAML\SAML2\LogoutRequest The LogoutRequest generated.
150+ * @return \SimpleSAML\SAML2\XML\samlp\ LogoutRequest The LogoutRequest generated.
151151 */
152152 private function createLogoutRequest (array $ state = []): LogoutRequest
153153 {
154154 $ info = ['AuthId ' => 'default-sp ' ];
155155 $ config = ['entityID ' => 'urn:x-simplesamlphp:example-sp ' ];
156156 $ as = new SpTester ($ info , $ config );
157157
158- /** @var \SimpleSAML\SAML2\LogoutRequest $lr */
158+ /** @var \SimpleSAML\SAML2\XML\samlp\ LogoutRequest $lr */
159159 $ lr = null ;
160160 try {
161161 $ as ->startSLO2 ($ this ->config , $ state );
@@ -371,7 +371,7 @@ public function testIdpListWithExplicitIdpMatch(): void
371371 $ this ->fail ('Expected ExitTestException ' );
372372 } catch (ExitTestException $ e ) {
373373 $ r = $ e ->getTestResult ();
374- /** @var AuthnRequest $ar */
374+ /** @var \SimpleSAML\SAML2\XML\samlp\ AuthnRequest $ar */
375375 $ ar = $ r ['ar ' ];
376376 $ xml = $ ar ->toSignedXML ();
377377
@@ -412,7 +412,7 @@ public function testIdpListWithSingleMatch(): void
412412 $ this ->fail ('Expected ExitTestException ' );
413413 } catch (ExitTestException $ e ) {
414414 $ r = $ e ->getTestResult ();
415- /** @var AuthnRequest $ar */
415+ /** @var \SimpleSAML\SAML2\XML\samlp\ AuthnRequest $ar */
416416 $ ar = $ r ['ar ' ];
417417 $ xml = $ ar ->toSignedXML ();
418418
@@ -535,7 +535,7 @@ public function testRemoteMetadataScoping(): void
535535 ];
536536 $ as = new SpTester ($ info , $ config );
537537
538- /** @var \SimpleSAML\SAML2\AuthnRequest $ar */
538+ /** @var \SimpleSAML\SAML2\XML\samlp\ AuthnRequest $ar */
539539 try {
540540 $ as ->startSSO2Test ($ this ->getIdpMetadata (), []);
541541 $ this ->assertTrue (false , 'Expected ExitTestException ' );
@@ -576,7 +576,7 @@ public function testSPIdpListScopingOrder(
576576
577577 $ as = new SpTester ($ info , $ config );
578578
579- /** @var \SimpleSAML\SAML2\AuthnRequest $ar */
579+ /** @var \SimpleSAML\SAML2\XML\samlp\ AuthnRequest $ar */
580580 try {
581581 $ as ->startSSO2Test ($ this ->getIdpMetadata (), $ state );
582582 $ this ->assertTrue (false , 'Expected ExitTestException ' );
0 commit comments