/**
  * @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();
 }