Пример #1
0
 /**
  * Returns whether the content of this internet media type is binary.
  *
  * Returns TRUE in case the content of this internet media type is binary or
  * this internet media type is unknown.
  * Otherwise returns FALSE.
  *
  * @return bool
  */
 public function hasBinaryContent()
 {
     return InternetMediaTypeLibrary::hasBinaryContent($this);
 }
 /**
  * Tests whether hasBinaryContent() works as expected with unknown content type.
  *
  * @return void
  */
 public function testHasBinaryContentWithUnknownContentType()
 {
     $this->assertTrue(InternetMediaTypeLibrary::hasBinaryContent(new InternetMediaType('foobar', 'html')));
     $this->assertSystemLogFileContainsMessage('Unable to check whether internet media type "foobar/html" has binary content: Unknown internet media type');
 }