private function thenTheContextShouldBe($context) { $this->assertEquals('http://example.com' . $context, $this->env->getContext()->toString()); }
/** * @throws HttpError * @return WebRequest */ public function build() { list($target, $extension) = $this->parseExtension($this->environment->getTarget()); return new WebRequest($this->environment->getContext(), $target, $this->getMethod(), $this->getArguments($this->getMethod()), $this->getFormats($extension), $this->getHeaders()); }