コード例 #1
0
 public function testGetPath()
 {
     $path = 'test_path';
     $this->sessionConfigMock->expects($this->once())->method('getCookiePath')->will($this->returnValue($path));
     $result = $this->model->getPath();
     $this->assertEquals($path, $result);
 }
コード例 #2
0
 public function testGetLifetime()
 {
     $lifetime = 3600;
     $this->sessionConfigMock->expects(static::once())->method('getCookieLifetime')->willReturn($lifetime);
     $this->assertEquals($lifetime, $this->model->getLifetime());
 }