function logout($returnTo = null, $nameId = null, $sessionIndex = null) { $auth = $this->auth; $auth->logout($returnTo, [], $nameId, $sessionIndex); }
public function testLogout() { $auth = m::mock('OneLogin_Saml2_Auth'); $saml2 = new Saml2Auth($auth); $auth->shouldReceive('logout')->with()->once(); $saml2->logout(); }