/**
  * test logout
  * @expectedException Amfphp_Core_Exception
  */
 public function testLogout()
 {
     $this->serviceObj->login('admin', 'adminPassword');
     $this->object->filterServiceObject($this->serviceObj, 'AnyService', 'adminMethod');
     $this->serviceObj->logout();
     $this->object->filterServiceObject($this->serviceObj, 'AnyService', 'adminMethod');
 }
Esempio n. 2
0
<?php

include_once '../app/services/session.php';
include_once '../app/services/HttpService.php';
include_once '../app/services/AuthenticationService.php';
AuthenticationService::logout();
HttpService::redirect_to('/');