function testHeaders()
 {
     $message = new MessageMock();
     $message->setHeader('X-Foo', 'bar');
     // Testing caselessness
     $this->assertEquals('bar', $message->getHeader('X-Foo'));
     $this->assertEquals('bar', $message->getHeader('x-fOO'));
     $this->assertTrue($message->removeHeader('X-FOO'));
     $this->assertNull($message->getHeader('X-Foo'));
     $this->assertFalse($message->removeHeader('X-FOO'));
 }
 function testHasHeaders()
 {
     $message = new MessageMock();
     $this->assertFalse($message->hasHeader('X-Foo'));
     $message->setHeader('X-Foo', 'Bar');
     $this->assertTrue($message->hasHeader('X-Foo'));
 }