Ejemplo n.º 1
0
 public function testSetHeader()
 {
     $header = new Header();
     $header->setRevision(5);
     $this->tag->setHeader($header);
     $this->assertSame($header, $this->tag->getHeader());
 }
Ejemplo n.º 2
0
 /**
  * @return Tag
  */
 private function readTag()
 {
     $tag = new Tag();
     $tag->setHeader($this->readHeader());
     if ($tag->getHeader()->isExtendedHeaderUsed()) {
         $tag->setExtendedHeader($this->readExtendedHeader());
     }
     $frames = $this->readFrames();
     return $tag;
 }