This file is indexed.

/usr/share/php/tests/Horde_Url/Horde/Url/RawTest.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_RawTest extends PHPUnit_Framework_TestCase
{
    public function testFromString()
    {
        $url = new Horde_Url('test?foo=1&bar=2');
        $this->assertEquals('test?foo=1&bar=2', (string)$url);
        $url = new Horde_Url('test?foo=1&bar=2', true);
        $this->assertEquals('test?foo=1&bar=2', (string)$url);
        $url = new Horde_Url('test?foo=1&bar=2', false);
        $this->assertEquals('test?foo=1&amp;bar=2', (string)$url);

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

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

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

    public function testFromUrl()
    {
        $baseurl = new Horde_Url('test', true);
        $baseurl->add(array('foo' => 1, 'bar' => 2));
        $url = new Horde_Url($baseurl);
        $this->assertEquals('test?foo=1&bar=2', (string)$url);
        $url = new Horde_Url($baseurl, true);
        $this->assertEquals('test?foo=1&bar=2', (string)$url);
        $url = new Horde_Url($baseurl, false);
        $this->assertEquals('test?foo=1&amp;bar=2', (string)$url);

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