This file is indexed.

/usr/share/php/PHPUnit/Autoload.php is in phpunit 3.7.28-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
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?php
/**
 * PHPUnit
 *
 * Copyright (c) 2001-2013, Sebastian Bergmann <sebastian@phpunit.de>.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   * Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   * Neither the name of Sebastian Bergmann nor the names of his
 *     contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * @package    PHPUnit
 * @author     Sebastian Bergmann <sebastian@phpunit.de>
 * @copyright  2001-2013 Sebastian Bergmann <sebastian@phpunit.de>
 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
 * @link       http://www.phpunit.de/
 * @since      File available since Release 3.5.0
 */

if (defined('PHPUNIT_COMPOSER_INSTALL')) {
    return;
}

$paths = array(
  __DIR__ . '/../vendor',
  __DIR__ . '/../../..'
);

foreach ($paths as $path) {
    if (@is_dir($path . '/composer') &&
        @is_file($path . '/autoload.php')) {
        require_once $path . '/autoload.php';
        define('PHPUNIT_COMPOSER_INSTALL', $path . '/autoload.php');

        return;
    }
}

require_once 'File/Iterator/Autoload.php';
require_once 'PHP/CodeCoverage/Autoload.php';
require_once 'PHP/Timer/Autoload.php';
require_once 'PHPUnit/Framework/MockObject/Autoload.php';
require_once 'Text/Template/Autoload.php';

spl_autoload_register(
  function ($class)
  {
      static $classes = NULL;
      static $path    = NULL;

      if ($classes === NULL) {
          $classes = array(
            'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php',
            'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php',
            'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php',
            'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php',
            'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php',
            'phpunit_extensions_testdecorator' => '/Extensions/TestDecorator.php',
            'phpunit_extensions_ticketlistener' => '/Extensions/TicketListener.php',
            'phpunit_framework_assert' => '/Framework/Assert.php',
            'phpunit_framework_assertionfailederror' => '/Framework/AssertionFailedError.php',
            'phpunit_framework_comparator' => '/Framework/Comparator.php',
            'phpunit_framework_comparator_array' => '/Framework/Comparator/Array.php',
            'phpunit_framework_comparator_domdocument' => '/Framework/Comparator/DOMDocument.php',
            'phpunit_framework_comparator_double' => '/Framework/Comparator/Double.php',
            'phpunit_framework_comparator_exception' => '/Framework/Comparator/Exception.php',
            'phpunit_framework_comparator_mockobject' => '/Framework/Comparator/MockObject.php',
            'phpunit_framework_comparator_numeric' => '/Framework/Comparator/Numeric.php',
            'phpunit_framework_comparator_object' => '/Framework/Comparator/Object.php',
            'phpunit_framework_comparator_resource' => '/Framework/Comparator/Resource.php',
            'phpunit_framework_comparator_scalar' => '/Framework/Comparator/Scalar.php',
            'phpunit_framework_comparator_splobjectstorage' => '/Framework/Comparator/SplObjectStorage.php',
            'phpunit_framework_comparator_type' => '/Framework/Comparator/Type.php',
            'phpunit_framework_comparatorfactory' => '/Framework/ComparatorFactory.php',
            'phpunit_framework_comparisonfailure' => '/Framework/ComparisonFailure.php',
            'phpunit_framework_constraint' => '/Framework/Constraint.php',
            'phpunit_framework_constraint_and' => '/Framework/Constraint/And.php',
            'phpunit_framework_constraint_arrayhaskey' => '/Framework/Constraint/ArrayHasKey.php',
            'phpunit_framework_constraint_attribute' => '/Framework/Constraint/Attribute.php',
            'phpunit_framework_constraint_callback' => '/Framework/Constraint/Callback.php',
            'phpunit_framework_constraint_classhasattribute' => '/Framework/Constraint/ClassHasAttribute.php',
            'phpunit_framework_constraint_classhasstaticattribute' => '/Framework/Constraint/ClassHasStaticAttribute.php',
            'phpunit_framework_constraint_composite' => '/Framework/Constraint/Composite.php',
            'phpunit_framework_constraint_count' => '/Framework/Constraint/Count.php',
            'phpunit_framework_constraint_exception' => '/Framework/Constraint/Exception.php',
            'phpunit_framework_constraint_exceptioncode' => '/Framework/Constraint/ExceptionCode.php',
            'phpunit_framework_constraint_exceptionmessage' => '/Framework/Constraint/ExceptionMessage.php',
            'phpunit_framework_constraint_fileexists' => '/Framework/Constraint/FileExists.php',
            'phpunit_framework_constraint_greaterthan' => '/Framework/Constraint/GreaterThan.php',
            'phpunit_framework_constraint_isanything' => '/Framework/Constraint/IsAnything.php',
            'phpunit_framework_constraint_isempty' => '/Framework/Constraint/IsEmpty.php',
            'phpunit_framework_constraint_isequal' => '/Framework/Constraint/IsEqual.php',
            'phpunit_framework_constraint_isfalse' => '/Framework/Constraint/IsFalse.php',
            'phpunit_framework_constraint_isidentical' => '/Framework/Constraint/IsIdentical.php',
            'phpunit_framework_constraint_isinstanceof' => '/Framework/Constraint/IsInstanceOf.php',
            'phpunit_framework_constraint_isjson' => '/Framework/Constraint/IsJson.php',
            'phpunit_framework_constraint_isnull' => '/Framework/Constraint/IsNull.php',
            'phpunit_framework_constraint_istrue' => '/Framework/Constraint/IsTrue.php',
            'phpunit_framework_constraint_istype' => '/Framework/Constraint/IsType.php',
            'phpunit_framework_constraint_jsonmatches' => '/Framework/Constraint/JsonMatches.php',
            'phpunit_framework_constraint_jsonmatches_errormessageprovider' => '/Framework/Constraint/JsonMatches/ErrorMessageProvider.php',
            'phpunit_framework_constraint_lessthan' => '/Framework/Constraint/LessThan.php',
            'phpunit_framework_constraint_not' => '/Framework/Constraint/Not.php',
            'phpunit_framework_constraint_objecthasattribute' => '/Framework/Constraint/ObjectHasAttribute.php',
            'phpunit_framework_constraint_or' => '/Framework/Constraint/Or.php',
            'phpunit_framework_constraint_pcrematch' => '/Framework/Constraint/PCREMatch.php',
            'phpunit_framework_constraint_samesize' => '/Framework/Constraint/SameSize.php',
            'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php',
            'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php',
            'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php',
            'phpunit_framework_constraint_stringstartswith' => '/Framework/Constraint/StringStartsWith.php',
            'phpunit_framework_constraint_traversablecontains' => '/Framework/Constraint/TraversableContains.php',
            'phpunit_framework_constraint_traversablecontainsonly' => '/Framework/Constraint/TraversableContainsOnly.php',
            'phpunit_framework_constraint_xor' => '/Framework/Constraint/Xor.php',
            'phpunit_framework_error' => '/Framework/Error.php',
            'phpunit_framework_error_deprecated' => '/Framework/Error/Deprecated.php',
            'phpunit_framework_error_notice' => '/Framework/Error/Notice.php',
            'phpunit_framework_error_warning' => '/Framework/Error/Warning.php',
            'phpunit_framework_exception' => '/Framework/Exception.php',
            'phpunit_framework_expectationfailedexception' => '/Framework/ExpectationFailedException.php',
            'phpunit_framework_incompletetest' => '/Framework/IncompleteTest.php',
            'phpunit_framework_incompletetesterror' => '/Framework/IncompleteTestError.php',
            'phpunit_framework_outputerror' => '/Framework/OutputError.php',
            'phpunit_framework_selfdescribing' => '/Framework/SelfDescribing.php',
            'phpunit_framework_skippedtest' => '/Framework/SkippedTest.php',
            'phpunit_framework_skippedtesterror' => '/Framework/SkippedTestError.php',
            'phpunit_framework_skippedtestsuiteerror' => '/Framework/SkippedTestSuiteError.php',
            'phpunit_framework_syntheticerror' => '/Framework/SyntheticError.php',
            'phpunit_framework_test' => '/Framework/Test.php',
            'phpunit_framework_testcase' => '/Framework/TestCase.php',
            'phpunit_framework_testfailure' => '/Framework/TestFailure.php',
            'phpunit_framework_testlistener' => '/Framework/TestListener.php',
            'phpunit_framework_testresult' => '/Framework/TestResult.php',
            'phpunit_framework_testsuite' => '/Framework/TestSuite.php',
            'phpunit_framework_testsuite_dataprovider' => '/Framework/TestSuite/DataProvider.php',
            'phpunit_framework_warning' => '/Framework/Warning.php',
            'phpunit_runner_basetestrunner' => '/Runner/BaseTestRunner.php',
            'phpunit_runner_standardtestsuiteloader' => '/Runner/StandardTestSuiteLoader.php',
            'phpunit_runner_testsuiteloader' => '/Runner/TestSuiteLoader.php',
            'phpunit_runner_version' => '/Runner/Version.php',
            'phpunit_textui_command' => '/TextUI/Command.php',
            'phpunit_textui_resultprinter' => '/TextUI/ResultPrinter.php',
            'phpunit_textui_testrunner' => '/TextUI/TestRunner.php',
            'phpunit_util_class' => '/Util/Class.php',
            'phpunit_util_configuration' => '/Util/Configuration.php',
            'phpunit_util_deprecatedfeature' => '/Util/DeprecatedFeature.php',
            'phpunit_util_deprecatedfeature_logger' => '/Util/DeprecatedFeature/Logger.php',
            'phpunit_util_diff' => '/Util/Diff.php',
            'phpunit_util_errorhandler' => '/Util/ErrorHandler.php',
            'phpunit_util_fileloader' => '/Util/Fileloader.php',
            'phpunit_util_filesystem' => '/Util/Filesystem.php',
            'phpunit_util_filter' => '/Util/Filter.php',
            'phpunit_util_getopt' => '/Util/Getopt.php',
            'phpunit_util_globalstate' => '/Util/GlobalState.php',
            'phpunit_util_invalidargumenthelper' => '/Util/InvalidArgumentHelper.php',
            'phpunit_util_log_json' => '/Util/Log/JSON.php',
            'phpunit_util_log_junit' => '/Util/Log/JUnit.php',
            'phpunit_util_log_tap' => '/Util/Log/TAP.php',
            'phpunit_util_php' => '/Util/PHP.php',
            'phpunit_util_php_default' => '/Util/PHP/Default.php',
            'phpunit_util_php_windows' => '/Util/PHP/Windows.php',
            'phpunit_util_printer' => '/Util/Printer.php',
            'phpunit_util_string' => '/Util/String.php',
            'phpunit_util_test' => '/Util/Test.php',
            'phpunit_util_testdox_nameprettifier' => '/Util/TestDox/NamePrettifier.php',
            'phpunit_util_testdox_resultprinter' => '/Util/TestDox/ResultPrinter.php',
            'phpunit_util_testdox_resultprinter_html' => '/Util/TestDox/ResultPrinter/HTML.php',
            'phpunit_util_testdox_resultprinter_text' => '/Util/TestDox/ResultPrinter/Text.php',
            'phpunit_util_testsuiteiterator' => '/Util/TestSuiteIterator.php',
            'phpunit_util_type' => '/Util/Type.php',
            'phpunit_util_xml' => '/Util/XML.php'
          );

          $path = dirname(__FILE__);
      }

      $cn = strtolower($class);

      if (isset($classes[$cn])) {
          require $path . $classes[$cn];
      }
  }
);

// Symfony Yaml autoloader
spl_autoload_register(
  function ($class) {
      if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Yaml')) {
          $file = sprintf(
            'Symfony/Component/Yaml%s.php',

            substr(
              str_replace('\\', '/', $class),
              strlen('Symfony\Component\Yaml')
            )
          );

          if (stream_resolve_include_path($file)) {
              require_once $file;
          }
      }
  }
);

if (stream_resolve_include_path('PHP/Invoker/Autoload.php')) {
    require_once 'PHP/Invoker/Autoload.php';
}

if (stream_resolve_include_path('PHPUnit/Extensions/Database/Autoload.php')) {
    require_once 'PHPUnit/Extensions/Database/Autoload.php';
}

if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumCommon/Autoload.php')) {
    require_once 'PHPUnit/Extensions/SeleniumCommon/Autoload.php';
}

else if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) {
    require_once 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php';
}

if (stream_resolve_include_path('PHPUnit/Extensions/Story/Autoload.php')) {
    require_once 'PHPUnit/Extensions/Story/Autoload.php';
}