public function testHasContent()
 {
     $hf = $this->mockHeaderFactory;
     $part = new MimePart($hf);
     $this->assertFalse($part->hasContent());
     $res = fopen('php://memory', 'rw');
     $part->attachContentResourceHandle($res);
     $this->assertTrue($part->hasContent());
 }