Ejemplo n.º 1
0
 public function testAddFrame()
 {
     $frame = new Unknown('TXXX');
     $this->tag->addFrame($frame);
     $this->assertNotEmpty($this->tag->getFrames());
     $this->assertInstanceOf('Nakard\\MusicFormats\\Media\\Id3v2\\Frame\\AbstractFrame', $this->tag->getFrames()->get(0));
 }
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;
 }