/** * @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 testGetLength() { $this->assertEquals(8, $this->obj->getLength()); }
/** * @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>"; }