コード例 #1
0
 /**
  * @depends testCodecMatcher
  */
 public function testDecoderC()
 {
     $codecMatcher = $this->repository->getCodecMatcher();
     $codecMatcher->matchDecoder(Header::parse(static::C, Header::HEADER_CONTENT_TYPE));
     $this->assertNull($codecMatcher->getDecoder());
     $this->assertNull($codecMatcher->getDecoderHeaderMatchedType());
     $this->assertNull($codecMatcher->getDecoderRegisteredMatchedType());
 }
コード例 #2
0
 /**
  * @param SchemaContainerInterface $schemas
  * @param null $urlPrefix
  * @return CodecMatcherInterface
  */
 protected function createCodecMatcher(SchemaContainerInterface $schemas, $urlPrefix = null)
 {
     return $this->codecMatcherRepository->registerSchemas($schemas)->registerUrlPrefix($urlPrefix)->getCodecMatcher();
 }