Esempio n. 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;
 }
Esempio n. 2
0
 public function testGetData()
 {
     $this->assertEquals(array(0x974a8), $this->obj->getData());
 }
Esempio n. 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>";
 }