Ejemplo n.º 1
0
 /**
  * @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.");
 }
Ejemplo n.º 2
0
function lw_fmtAlbum($album, $year)
{
    $year = $year == "" ? "????" : $year;
    return lw_fmtSong($album) . " ({$year})";
}