Exemple #1
0
 /**
  * @since 1.0
  * @uses  TrackHeader::getData()
  * @uses  formatText()
  * @uses  decreaseIndent()
  * 
  * @param  TrackHeader $trackHeader
  * @return string
  */
 public function formatTrackHeader(TrackHeader $trackHeader)
 {
     list($size) = $trackHeader->getData();
     $text = $this->formatText('---- TRACK ' . $this->currentTrack . ' (' . $size . ' bytes) ----');
     $this->currentTrack++;
     $this->increaseIndent();
     return $text;
 }
Exemple #2
0
 public function testGetLength()
 {
     $this->assertEquals(8, $this->obj->getLength());
 }
Exemple #3
0
 /**
  * @since 1.0
  * @uses  TrackHeader::getData()
  * 
  * @param  TrackHeader $trackHeader
  * @return string
  */
 public function formatTrackHeader(TrackHeader $trackHeader)
 {
     list($size) = $trackHeader->getData();
     return "<td>Track size: {$size} bytes</td>";
 }