/**
  * Tests whether stripComments() handles invalid comments as expected.
  *
  * @return void
  */
 public function testStripCommentsHandlesInvalidComments()
 {
     try {
         InternetMediaType::stripComments('foobar (b(az)');
         $this->fail('stripComments() does not throw exceptions as expected');
     } catch (SystemException $e) {
         $this->assertSame('Unable to strip comments from "foobar (b(az)" - Comment not closed!', $e->getMessage());
         $this->assertSame(0, $e->getCode());
         $this->assertSame(E_USER_NOTICE, $e->getSeverity());
         $this->assertNull($e->getPrevious());
     }
 }