/** * @covers lw_fmtSong */ public function test_lw_fmtSong() { $this->assertEquals(lw_fmtSong("guitar%20man"), "Guitar_Man", "Testing URL decoding"); $this->assertEquals(lw_fmtSong("guitar (man)"), "Guitar_(Man)", "Testing various capitalization needs."); }
function lw_fmtAlbum($album, $year) { $year = $year == "" ? "????" : $year; return lw_fmtSong($album) . " ({$year})"; }