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); }
/** * Process a Saml response (assertion consumer service) * returns an array with errors if it can not logout * * @static */ public static function sls() { return \Aacotroneo\Saml2\Saml2Auth::sls(); }