Ejemplo n.º 1
0
 function outputOfHttpResponseIs(response $response, output $output)
 {
     $formater = clone $this;
     $formater->output = $output;
     $response->recipientOfHttpResponseContentIs($formater);
     return $this;
 }
Ejemplo n.º 2
0
 function outputOfHttpResponseIs(response $response, output $output)
 {
     $formater = clone $this;
     $formater->output = $output;
     $formater->noHeaderAggregatorFormater = $formater->defaultHeaderAggregatorFormater;
     $response->recipientOfHttpHeaderAggregatorIs($formater);
     $formater->noHeaderAggregatorFormater->outputIs($formater->output);
     return $this;
 }
Ejemplo n.º 3
0
 function outputOfHttpResponseIs(response $response, output $output)
 {
     $formater = clone $this;
     $formater->output = $output;
     $formater->noStatusLineFormater = $formater->defaultStatusLineFormater;
     $response->recipientOfHttpResponseStatusLineIs($formater);
     $formater->noStatusLineFormater->outputIs($formater->output);
     return $this;
 }
Ejemplo n.º 4
0
 function outputOfHttpResponseIs(response $response, output $output)
 {
     $formater = clone $this;
     $formater->statusLine = new response\status\line\blackhole();
     $formater->headerAggregator = new header\aggregator\blackhole();
     $formater->content = new response\content();
     $response->recipientOfHttpResponseStatusLineIs($formater);
     $response->recipientOfHttpHeaderAggregatorIs($formater);
     $response->recipientOfHttpResponseContentIs($formater);
     $formater->statusLineFormater->outputOfHttpResponseStatusLineIs($formater->statusLine, $output);
     $formater->headerAggregatorFormater->outputOfHttpHeaderAggregatorIs($formater->headerAggregator, $output);
     $formater->contentFormater->outputOfHttpResponseContentIs($formater->content, $output);
     return $this;
 }