/**
  * Tests whether setSubType() throws exceptions as expected.
  *
  * @return void
  */
 public function testSetSubTypeThrowsExceptions()
 {
     try {
         $internetMediaType = new InternetMediaType();
         $internetMediaType->setSubType('foo§bar');
         $this->fail('setSubType() does not throw exceptions as expected');
     } catch (SystemException $e) {
         $this->assertSame('Unable to set sub type to "foo§bar" - Sub type contains illegal characters!', $e->getMessage());
         $this->assertSame(0, $e->getCode());
         $this->assertSame(E_USER_NOTICE, $e->getSeverity());
         $this->assertNull($e->getPrevious());
     }
 }