public function testGetSessionNotOnOrAfter() { $xml = file_get_contents(TEST_ROOT . '/data/responses/response1.xml.base64'); $response = new OneLogin_Saml_Response($this->_settings, $xml); $this->assertEquals(1290203857, $response->getSessionNotOnOrAfter()); // An assertion that do not specified Session timeout should return NULL $xml = file_get_contents(TEST_ROOT . '/data/responses/response2.xml.base64'); $response = new OneLogin_Saml_Response($this->_settings, $xml); $this->assertNull($response->getSessionNotOnOrAfter()); }