Esempio n. 1
0
 private function getDecoder()
 {
     if ($this->environment->getHeaders()->has(WebRequest::HEADER_CONTENT_TYPE) && array_key_exists($this->environment->getHeaders()->get(WebRequest::HEADER_CONTENT_TYPE), $this->decoders)) {
         return $this->decoders[$this->environment->getHeaders()->get(WebRequest::HEADER_CONTENT_TYPE)];
     }
     return null;
 }
Esempio n. 2
0
 private function thenTheTargetShouldBe($target)
 {
     $this->assertEquals($target, $this->env->getTarget()->toString());
 }