ContentTypeHeaderMatcher example


  protected $matcher;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();

    $this->fixtures = new RoutingFixtures();
    $this->matcher = new ContentTypeHeaderMatcher();
  }

  /** * Tests that routes are not filtered on safe requests. * * @dataProvider providerTestSafeRequestFilter */
  public function testSafeRequestFilter($method) {
    $collection = $this->fixtures->sampleRouteCollection();
    $collection->addCollection($this->fixtures->contentRouteCollection());

    
Home | Imprint | This part of the site doesn't use cookies.