Exemplo n.º 1
0
 public function testAttachContentResourceHandle()
 {
     $hf = $this->mockHeaderFactory;
     $part = new MimePart($hf);
     $res = fopen('php://memory', 'rw');
     $part->attachContentResourceHandle($res);
     $this->assertSame($res, $part->getContentResourceHandle());
 }