/** * Convenience function for {@link Router#urlAdd()} */ function url_add($url, $arguments = array()) { return Router::urlAdd($url, $arguments); }
/** * Tests that {@link Rotuer::urlAdd()} can delete keys with {@code null}. */ function testKeyDeleteAbsolute() { $this->assertEquals("http://openclerk.org/url", Router::urlAdd('http://openclerk.org/url', array('key' => null))); $this->assertEquals("http://openclerk.org/url", Router::urlAdd('http://openclerk.org/url?key=bar', array('key' => null))); }