public function testAddRaw() { $url = new Horde_Url('test'); $url->add('foo', 'bar&baz'); $this->assertEquals('test?foo=bar%26baz', (string) $url); $url->add('x', 'y'); $this->assertEquals('test?foo=bar%26baz&x=y', (string) $url); $url->raw = true; $url->add('x', 'y'); $this->assertEquals('test?foo=bar%26baz&x=y', (string) $url); $url = new Horde_Url('test'); $url->setRaw(true)->add('x', 'y')->add('foo', 'bar'); $this->assertEquals('test?x=y&foo=bar', (string) $url); $url = new Horde_Url('test'); $url->add('x', 'y')->add('foo', 'bar&baz'); $this->assertEquals('test?x=y&foo=bar%26baz', (string) $url); }