@@ -92,6 +92,7 @@ public function testProcessNoResponse()
9292 * @covers OneLogin_Saml2_Auth::getNameId
9393 * @covers OneLogin_Saml2_Auth::getErrors
9494 * @covers OneLogin_Saml2_Auth::getSessionIndex
95+ * @covers OneLogin_Saml2_Auth::getSessionExpiration
9596 * @covers OneLogin_Saml2_Auth::getLastErrorReason
9697 */
9798 public function testProcessResponseInvalid ()
@@ -105,6 +106,7 @@ public function testProcessResponseInvalid()
105106 $ this ->assertEmpty ($ this ->_auth ->getAttributes ());
106107 $ this ->assertNull ($ this ->_auth ->getNameId ());
107108 $ this ->assertNull ($ this ->_auth ->getSessionIndex ());
109+ $ this ->assertNull ($ this ->_auth ->getSessionExpiration ());
108110 $ this ->assertNull ($ this ->_auth ->getAttribute ('uid ' ));
109111 $ this ->assertEquals ($ this ->_auth ->getErrors (), array ('invalid_response ' ));
110112 $ this ->assertEquals ($ this ->_auth ->getLastErrorReason (), "Reference validation failed " );
@@ -152,6 +154,7 @@ public function testProcessResponseInvalidRequestId()
152154 * @covers OneLogin_Saml2_Auth::getAttribute
153155 * @covers OneLogin_Saml2_Auth::getNameId
154156 * @covers OneLogin_Saml2_Auth::getSessionIndex
157+ * @covers OneLogin_Saml2_Auth::getSessionExpiration
155158 * @covers OneLogin_Saml2_Auth::getErrors
156159 */
157160 public function testProcessResponseValid ()
@@ -168,6 +171,9 @@ public function testProcessResponseValid()
168171 $ sessionIndex = $ this ->_auth ->getSessionIndex ();
169172 $ this ->assertNotNull ($ sessionIndex );
170173 $ this ->assertEquals ('_6273d77b8cde0c333ec79d22a9fa0003b9fe2d75cb ' , $ sessionIndex );
174+ $ sessionExpiration = $ this ->_auth ->getSessionExpiration ();
175+ $ this ->assertNotNull ($ sessionExpiration );
176+ $ this ->assertEquals ('1392802621 ' , $ sessionExpiration );
171177 }
172178
173179 /**
0 commit comments