Exemplo n.º 1
0
 public function testRemoveParameter()
 {
     $mt = new MIME_Type('image/png; foo=bar');
     $mt->addParameter('baz', 'val', 'this is a comment');
     $mt->removeParameter('foo');
     $res = $mt->get();
     $this->assertNotContains('foo=', $res);
     $this->assertNotContains('bar', $res);
     $this->assertContains('baz=', $res);
 }