This file is indexed.

/usr/share/php/tests/Horde_Url/Horde/Url/RemoveTest.php is in php-horde-url 2.2.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
 * @author     Jan Schneider <jan@horde.org>
 * @license    http://www.horde.org/licenses/lgpl21 LGPL 2.1
 * @category   Horde
 * @package    Url
 * @subpackage UnitTests
 */

class Horde_Url_RemoveTest extends PHPUnit_Framework_TestCase
{
    public function testRemoveRaw()
    {
        $url = new Horde_Url('test?foo=1&bar=2');
        $this->assertEquals('test?bar=2', (string)$url->remove('foo'));

        $url = new Horde_Url('test?foo=1&bar=2');
        $this->assertEquals('test?foo=1', (string)$url->remove('bar'));

        $url = new Horde_Url('test?foo=1&bar=2');
        $this->assertEquals('test', (string)$url->remove(array('foo', 'bar')));

        $url = new Horde_Url('test?foo=1&bar=2&baz=3');
        $this->assertEquals('test?bar=2&baz=3', (string)$url->remove('foo'));

        $url = new Horde_Url('test?foo=1#baz');
        $url->setAnchor('');
        $this->assertEquals('test?foo=1', (string)$url);
    }

    public function testRemoveEncoded()
    {
        $url = new Horde_Url('test?foo=1&amp;bar=2');
        $this->assertEquals('test?bar=2', (string)$url->remove('foo'));

        $url = new Horde_Url('test?foo=1&amp;bar=2');
        $this->assertEquals('test?foo=1', (string)$url->remove('bar'));

        $url = new Horde_Url('test?foo=1&amp;bar=2');
        $this->assertEquals('test', (string)$url->remove(array('foo', 'bar')));

        $url = new Horde_Url('test?foo=1&amp;bar=2&amp;baz=3');
        $this->assertEquals('test?bar=2&amp;baz=3', (string)$url->remove('foo'));

        $url = new Horde_Url('test?foo=1&amp;bar=2#baz');
        $url->setAnchor('');
        $this->assertEquals('test?foo=1&amp;bar=2', (string)$url);
    }

    public function testRemoveChaining()
    {
        $url = new Horde_Url('test?foo=1&bar=2');
        $this->assertEquals('test', (string)$url->remove('foo')->remove('bar'));
    }
}