This file is indexed.

/usr/share/doc/php-net-ldap/tests/AllTests.php is in php-net-ldap 1:1.1.5-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
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Net_LDAP_AllTests::main');
}

// PHPUnit inlcudes
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

// Net_LDAP test suites includes
chdir(dirname(__FILE__) . '/../');
require_once 'Net_LDAP_FilterTest.php';
require_once 'Net_LDAP_UtilTest.php';
require_once 'Net_LDAPTest.php';
require_once 'Net_LDAP_EntryTest.php';
require_once 'Net_LDAP_RootDSETest.php';
require_once 'Net_LDAP_SearchTest.php';
require_once 'Net_LDAP_LDIFTest.php';

class Net_LDAP_AllTests
{
    public static function main()
    {

        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Net_LDAP Tests');

       // LDAP independent tests
       $suite->addTestSuite('Net_LDAP_FilterTest');
       $suite->addTestSuite('Net_LDAP_UtilTest');
       $suite->addTestSuite('Net_LDAP_LDIFTest');

       // LDAP dependent tests (require a LDAP server)
       $suite->addTestSuite('Net_LDAPTest');
       $suite->addTestSuite('Net_LDAP_SearchTest');
       $suite->addTestSuite('Net_LDAP_EntryTest');
       $suite->addTestSuite('Net_LDAP_RootDSETest');

        return $suite;
    }
}


// exec test suite
if (PHPUnit_MAIN_METHOD == 'Net_LDAP_AllTests::main') {
    Net_LDAP_AllTests::main();
}
?>