/** * @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; }
public function testGetData() { $this->assertEquals(array(0x974a8), $this->obj->getData()); }
/** * @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>"; }