Пример #1
0
 private function setUserId()
 {
     $cookie = $this->cookie;
     // intentionally not calling getCookie()
     $res = $this->requestFactory->create($this->urlBuilder->getRoot(), [], Request::GET, $cookie);
     $this->userId = $this->userParser->getCurrentUserId($res->getContent());
 }
Пример #2
0
 /**
  * @expectedException Csfd\InternalException
  */
 public function testUnsetClass()
 {
     $rf = new RequestFactory();
     $rf->create('any url');
 }