This file is indexed.

/usr/share/php/tests/Horde_Translation/Horde/Translation/TestBase.php is in php-horde-translation 2.0.1-3.

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
<?php
/**
 * @author     Jan Schneider <jan@horde.org>
 * @license    http://www.horde.org/licenses/lgpl21 LGPL 2.1
 * @category   Horde
 * @package    Translation
 * @subpackage UnitTests
 */
class Horde_Translation_TestBase extends PHPUnit_Framework_TestCase
{
    private $_env;

    public function setUp()
    {
        try {
            $this->setLocale(LC_ALL, 'de_DE.UTF-8');
        } catch (PHPUnit_Framework_Exception $e) {
            $this->markTestSkipped('Setting the locale failed. de_DE.UTF-8 might not be supported.');
        }
        $this->_setEnv('de_DE.UTF-8');
    }

    public function tearDown()
    {
        $this->_restoreEnv();
    }

    private function _setEnv($value)
    {
        foreach (array('LC_ALL', 'LANG', 'LANGUAGE') as $env) {
            $this->_env[$env] = getenv($env);
            putenv($env . '=' . $value);
        }
    }

    private function _restoreEnv()
    {
        foreach (array('LC_ALL', 'LANG', 'LANGUAGE') as $env) {
            putenv($env . '=' . $this->_env[$env]);
        }
    }
}