/** * * @param \webignition\WebResource\WebResource $webResource * @return string */ protected function generatePath(\webignition\WebResource\WebResource $webResource) { return sys_get_temp_dir() . '/' . md5($webResource->getUrl()) . '.' . $this->getPathExtension($webResource); }
/** * * @param WebResource $webResource * @return string */ private function getWebResourceUrlHash(WebResource $webResource) { return $this->getUrlHash($webResource->getUrl()); }
public function setUp() { parent::setUp(); $this->response = $this->getHttpResponseFromMessage($this->getHttpMessage()); $this->resource->setHttpResponse($this->response); }