public function testUrlEncode() { $encoded = Tools::urlEncode('path/to/test'); $this->assertEquals('path%252Fto%252Ftest', $encoded); }