예제 #1
0
 public function test_get_and_set_content_type_data_matcher()
 {
     $request = new HttpRequest();
     $this->assertTrue($request->getContentTypeDataMatcher() instanceof IContentTypeDataMatcher);
     $matcher = new ContentTypeDataMatcher();
     $request->setContentTypeDataMatcher($matcher);
     $this->assertTrue($matcher === $request->getContentTypeDataMatcher());
 }