public function testExtendsSession()
 {
     $session = new WebServiceUserSession(123);
     $session->SessionExpiration = '2012-05-01';
     $session->ExtendSession();
     $this->assertEquals(WebServiceExpiration::Create(), $session->SessionExpiration);
 }
예제 #2
0
 public function setup()
 {
     parent::setup();
     $this->userSessionRepository = $this->getMock('IUserSessionRepository');
     $this->server = $this->getMock('IRestServer');
     $this->security = new WebServiceSecurity($this->userSessionRepository);
     $this->session = new FakeWebServiceUserSession($this->userId);
     $this->session->SessionToken = $this->sessionToken;
     $this->session->SessionExpiration = WebServiceExpiration::Create();
 }
예제 #3
0
 public function ExtendSession()
 {
     $this->SessionExpiration = WebServiceExpiration::Create();
 }