function test_nameFromURL() { $this->assertEquals('a-path-seg', Utils::nameFromURL('http://some.com:80/a/path/seg.html?param')); $this->assertEquals('a-path-seg', Utils::nameFromURL('http://some.com:80/a/path/seg?param')); $this->assertEquals('a-path-seg', Utils::nameFromURL('http://some.com:80/a//path/seg?param')); }