/**
  * Tests the protected method _generateUniqueID of the Maestrano_Saml_Request
  *
  * @covers Maestrano_Saml_Request::_generateUniqueID
  */
 public function testGenerateUniqueID()
 {
     if (class_exists('ReflectionClass')) {
         $reflectionClass = new ReflectionClass("Maestrano_Saml_Request");
         $method = $reflectionClass->getMethod('_generateUniqueID');
         if (method_exists($method, 'setAccessible')) {
             $method->setAccessible(true);
             $metadata = new Maestrano_Saml_Request(array(), SamlTestHelper::getXmlSecSamlTestSettings());
             $id = $method->invoke($metadata);
             $id2 = $method->invoke($metadata);
             $this->assertNotEmpty($id);
             $this->assertNotEmpty($id2);
             $this->assertNotEquals($id, $id2);
             $this->assertContains('Maestrano', $id);
         }
     }
 }
 public function setUp()
 {
     $this->settings = SamlTestHelper::getXmlSecSamlTestSettings();
 }
Beispiel #3
0
 public function setUp()
 {
     Maestrano::configure(array('environment' => 'production'));
     $this->settings = SamlTestHelper::getXmlSecSamlTestSettings();
 }