/** * Testing that getting the URL works as expected. * * @access public */ public function testGetUrl() { // Get the standard URL with no replacements Core\Request::setUrl('/index/foo/bar/foobar'); $this->assertEquals(Core\Request::getUrl(), '/index/foo/bar/foobar'); // And try replacing slashes with underscores $this->assertEquals(Core\Request::getUrl('_'), '_index_foo_bar_foobar'); }