Exemplo n.º 1
0
 /**
  * Prints a track header
  *
  * @since 1.0
  * @uses  isParsingTrack()
  * @uses  Formatter::afterTrack()
  * @uses  Formatter::beforeTrack()
  * @uses  Formatter::beforeChunk()
  * @uses  Formatter::beforeTrackHeader()
  * @uses  Formatter::afterChunk()
  * @uses  Formatter::afterTrackHeader()
  * @uses  TrackHeader::getSize()
  * @uses  printData()
  * 
  * @param  TrackHeader $trackHeader
  */
 protected function printTrackHeader(TrackHeader $trackHeader)
 {
     if ($this->isParsingTrack()) {
         $this->printData($this->formatter->afterTrack());
     }
     $this->isParsingTrack = false;
     $this->printData($this->formatter->beforeTrack());
     $this->printData($this->formatter->beforeTrackHeader($trackHeader));
     $this->printData($this->formatter->beforeChunk($trackHeader));
     $this->printData($this->formatter->formatTrackHeader($trackHeader));
     $this->printData($this->formatter->afterChunk($trackHeader));
     $this->printData($this->formatter->afterTrackHeader($trackHeader));
     if ($trackHeader->getSize() > 0) {
         $this->isParsingTrack = true;
     }
 }
Exemplo n.º 2
0
 public function testBeforeTrack()
 {
     $this->assertNull($this->obj->beforeTrack());
 }