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()); }
/** * @expectedException Csfd\InternalException */ public function testUnsetClass() { $rf = new RequestFactory(); $rf->create('any url'); }