Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \ErrorException
  */
 public function testSetExtendedHeaderWithInvalidArgument()
 {
     $this->tag->setExtendedHeader($this->tag);
 }