public function testSlsOK()
 {
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('processSLO')->once()->with(true);
     $auth->shouldReceive('getErrors')->once()->andReturn(null);
     $error = $saml2->sls();
     $this->assertEmpty($error);
 }
 /**
  * Show metadata about the local sp. Use this to configure your saml2 IDP
  *
  * @return mixed xml string representing metadata
  * @throws \InvalidArgumentException if metadata is not correctly set
  * @static 
  */
 public static function getMetadata()
 {
     return \Aacotroneo\Saml2\Saml2Auth::getMetadata();
 }