gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

Autoload.php (14197B)


      1 <?php
      2 /**
      3  * PHPUnit
      4  *
      5  * Copyright (c) 2001-2014, Sebastian Bergmann <sebastian@phpunit.de>.
      6  * All rights reserved.
      7  *
      8  * Redistribution and use in source and binary forms, with or without
      9  * modification, are permitted provided that the following conditions
     10  * are met:
     11  *
     12  *   * Redistributions of source code must retain the above copyright
     13  *     notice, this list of conditions and the following disclaimer.
     14  *
     15  *   * Redistributions in binary form must reproduce the above copyright
     16  *     notice, this list of conditions and the following disclaimer in
     17  *     the documentation and/or other materials provided with the
     18  *     distribution.
     19  *
     20  *   * Neither the name of Sebastian Bergmann nor the names of his
     21  *     contributors may be used to endorse or promote products derived
     22  *     from this software without specific prior written permission.
     23  *
     24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     25  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     26  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
     27  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
     28  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
     29  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     30  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     31  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     32  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     33  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     34  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35  * POSSIBILITY OF SUCH DAMAGE.
     36  *
     37  * @package    PHPUnit
     38  * @author     Sebastian Bergmann <sebastian@phpunit.de>
     39  * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
     40  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
     41  * @link       http://www.phpunit.de/
     42  * @since      File available since Release 3.5.0
     43  */
     44 
     45 if (defined('PHPUNIT_COMPOSER_INSTALL')) {
     46     return;
     47 }
     48 
     49 $paths = array(
     50   __DIR__ . '/../vendor',
     51   __DIR__ . '/../../..'
     52 );
     53 
     54 foreach ($paths as $path) {
     55     if (@is_dir($path . '/composer') &&
     56         @is_file($path . '/autoload.php')) {
     57         require_once $path . '/autoload.php';
     58         define('PHPUNIT_COMPOSER_INSTALL', $path . '/autoload.php');
     59 
     60         return;
     61     }
     62 }
     63 
     64 require_once 'File/Iterator/Autoload.php';
     65 require_once 'PHP/CodeCoverage/Autoload.php';
     66 require_once 'PHP/Timer/Autoload.php';
     67 require_once 'PHPUnit/Framework/MockObject/Autoload.php';
     68 require_once 'Text/Template/Autoload.php';
     69 
     70 spl_autoload_register(
     71   function ($class)
     72   {
     73       static $classes = NULL;
     74       static $path    = NULL;
     75 
     76       if ($classes === NULL) {
     77           $classes = array(
     78             'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php',
     79             'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php',
     80             'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php',
     81             'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php',
     82             'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php',
     83             'phpunit_extensions_testdecorator' => '/Extensions/TestDecorator.php',
     84             'phpunit_extensions_ticketlistener' => '/Extensions/TicketListener.php',
     85             'phpunit_framework_assert' => '/Framework/Assert.php',
     86             'phpunit_framework_assertionfailederror' => '/Framework/AssertionFailedError.php',
     87             'phpunit_framework_comparator' => '/Framework/Comparator.php',
     88             'phpunit_framework_comparator_array' => '/Framework/Comparator/Array.php',
     89             'phpunit_framework_comparator_domdocument' => '/Framework/Comparator/DOMDocument.php',
     90             'phpunit_framework_comparator_double' => '/Framework/Comparator/Double.php',
     91             'phpunit_framework_comparator_exception' => '/Framework/Comparator/Exception.php',
     92             'phpunit_framework_comparator_mockobject' => '/Framework/Comparator/MockObject.php',
     93             'phpunit_framework_comparator_numeric' => '/Framework/Comparator/Numeric.php',
     94             'phpunit_framework_comparator_object' => '/Framework/Comparator/Object.php',
     95             'phpunit_framework_comparator_resource' => '/Framework/Comparator/Resource.php',
     96             'phpunit_framework_comparator_scalar' => '/Framework/Comparator/Scalar.php',
     97             'phpunit_framework_comparator_splobjectstorage' => '/Framework/Comparator/SplObjectStorage.php',
     98             'phpunit_framework_comparator_type' => '/Framework/Comparator/Type.php',
     99             'phpunit_framework_comparatorfactory' => '/Framework/ComparatorFactory.php',
    100             'phpunit_framework_comparisonfailure' => '/Framework/ComparisonFailure.php',
    101             'phpunit_framework_constraint' => '/Framework/Constraint.php',
    102             'phpunit_framework_constraint_and' => '/Framework/Constraint/And.php',
    103             'phpunit_framework_constraint_arrayhaskey' => '/Framework/Constraint/ArrayHasKey.php',
    104             'phpunit_framework_constraint_attribute' => '/Framework/Constraint/Attribute.php',
    105             'phpunit_framework_constraint_callback' => '/Framework/Constraint/Callback.php',
    106             'phpunit_framework_constraint_classhasattribute' => '/Framework/Constraint/ClassHasAttribute.php',
    107             'phpunit_framework_constraint_classhasstaticattribute' => '/Framework/Constraint/ClassHasStaticAttribute.php',
    108             'phpunit_framework_constraint_composite' => '/Framework/Constraint/Composite.php',
    109             'phpunit_framework_constraint_count' => '/Framework/Constraint/Count.php',
    110             'phpunit_framework_constraint_exception' => '/Framework/Constraint/Exception.php',
    111             'phpunit_framework_constraint_exceptioncode' => '/Framework/Constraint/ExceptionCode.php',
    112             'phpunit_framework_constraint_exceptionmessage' => '/Framework/Constraint/ExceptionMessage.php',
    113             'phpunit_framework_constraint_fileexists' => '/Framework/Constraint/FileExists.php',
    114             'phpunit_framework_constraint_greaterthan' => '/Framework/Constraint/GreaterThan.php',
    115             'phpunit_framework_constraint_isanything' => '/Framework/Constraint/IsAnything.php',
    116             'phpunit_framework_constraint_isempty' => '/Framework/Constraint/IsEmpty.php',
    117             'phpunit_framework_constraint_isequal' => '/Framework/Constraint/IsEqual.php',
    118             'phpunit_framework_constraint_isfalse' => '/Framework/Constraint/IsFalse.php',
    119             'phpunit_framework_constraint_isidentical' => '/Framework/Constraint/IsIdentical.php',
    120             'phpunit_framework_constraint_isinstanceof' => '/Framework/Constraint/IsInstanceOf.php',
    121             'phpunit_framework_constraint_isjson' => '/Framework/Constraint/IsJson.php',
    122             'phpunit_framework_constraint_isnull' => '/Framework/Constraint/IsNull.php',
    123             'phpunit_framework_constraint_istrue' => '/Framework/Constraint/IsTrue.php',
    124             'phpunit_framework_constraint_istype' => '/Framework/Constraint/IsType.php',
    125             'phpunit_framework_constraint_jsonmatches' => '/Framework/Constraint/JsonMatches.php',
    126             'phpunit_framework_constraint_jsonmatches_errormessageprovider' => '/Framework/Constraint/JsonMatches/ErrorMessageProvider.php',
    127             'phpunit_framework_constraint_lessthan' => '/Framework/Constraint/LessThan.php',
    128             'phpunit_framework_constraint_not' => '/Framework/Constraint/Not.php',
    129             'phpunit_framework_constraint_objecthasattribute' => '/Framework/Constraint/ObjectHasAttribute.php',
    130             'phpunit_framework_constraint_or' => '/Framework/Constraint/Or.php',
    131             'phpunit_framework_constraint_pcrematch' => '/Framework/Constraint/PCREMatch.php',
    132             'phpunit_framework_constraint_samesize' => '/Framework/Constraint/SameSize.php',
    133             'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php',
    134             'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php',
    135             'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php',
    136             'phpunit_framework_constraint_stringstartswith' => '/Framework/Constraint/StringStartsWith.php',
    137             'phpunit_framework_constraint_traversablecontains' => '/Framework/Constraint/TraversableContains.php',
    138             'phpunit_framework_constraint_traversablecontainsonly' => '/Framework/Constraint/TraversableContainsOnly.php',
    139             'phpunit_framework_constraint_xor' => '/Framework/Constraint/Xor.php',
    140             'phpunit_framework_error' => '/Framework/Error.php',
    141             'phpunit_framework_error_deprecated' => '/Framework/Error/Deprecated.php',
    142             'phpunit_framework_error_notice' => '/Framework/Error/Notice.php',
    143             'phpunit_framework_error_warning' => '/Framework/Error/Warning.php',
    144             'phpunit_framework_exception' => '/Framework/Exception.php',
    145             'phpunit_framework_expectationfailedexception' => '/Framework/ExpectationFailedException.php',
    146             'phpunit_framework_incompletetest' => '/Framework/IncompleteTest.php',
    147             'phpunit_framework_incompletetesterror' => '/Framework/IncompleteTestError.php',
    148             'phpunit_framework_outputerror' => '/Framework/OutputError.php',
    149             'phpunit_framework_selfdescribing' => '/Framework/SelfDescribing.php',
    150             'phpunit_framework_skippedtest' => '/Framework/SkippedTest.php',
    151             'phpunit_framework_skippedtesterror' => '/Framework/SkippedTestError.php',
    152             'phpunit_framework_skippedtestsuiteerror' => '/Framework/SkippedTestSuiteError.php',
    153             'phpunit_framework_syntheticerror' => '/Framework/SyntheticError.php',
    154             'phpunit_framework_test' => '/Framework/Test.php',
    155             'phpunit_framework_testcase' => '/Framework/TestCase.php',
    156             'phpunit_framework_testfailure' => '/Framework/TestFailure.php',
    157             'phpunit_framework_testlistener' => '/Framework/TestListener.php',
    158             'phpunit_framework_testresult' => '/Framework/TestResult.php',
    159             'phpunit_framework_testsuite' => '/Framework/TestSuite.php',
    160             'phpunit_framework_testsuite_dataprovider' => '/Framework/TestSuite/DataProvider.php',
    161             'phpunit_framework_warning' => '/Framework/Warning.php',
    162             'phpunit_runner_basetestrunner' => '/Runner/BaseTestRunner.php',
    163             'phpunit_runner_standardtestsuiteloader' => '/Runner/StandardTestSuiteLoader.php',
    164             'phpunit_runner_testsuiteloader' => '/Runner/TestSuiteLoader.php',
    165             'phpunit_runner_version' => '/Runner/Version.php',
    166             'phpunit_textui_command' => '/TextUI/Command.php',
    167             'phpunit_textui_resultprinter' => '/TextUI/ResultPrinter.php',
    168             'phpunit_textui_testrunner' => '/TextUI/TestRunner.php',
    169             'phpunit_util_class' => '/Util/Class.php',
    170             'phpunit_util_configuration' => '/Util/Configuration.php',
    171             'phpunit_util_deprecatedfeature' => '/Util/DeprecatedFeature.php',
    172             'phpunit_util_deprecatedfeature_logger' => '/Util/DeprecatedFeature/Logger.php',
    173             'phpunit_util_diff' => '/Util/Diff.php',
    174             'phpunit_util_errorhandler' => '/Util/ErrorHandler.php',
    175             'phpunit_util_fileloader' => '/Util/Fileloader.php',
    176             'phpunit_util_filesystem' => '/Util/Filesystem.php',
    177             'phpunit_util_filter' => '/Util/Filter.php',
    178             'phpunit_util_getopt' => '/Util/Getopt.php',
    179             'phpunit_util_globalstate' => '/Util/GlobalState.php',
    180             'phpunit_util_invalidargumenthelper' => '/Util/InvalidArgumentHelper.php',
    181             'phpunit_util_log_json' => '/Util/Log/JSON.php',
    182             'phpunit_util_log_junit' => '/Util/Log/JUnit.php',
    183             'phpunit_util_log_tap' => '/Util/Log/TAP.php',
    184             'phpunit_util_php' => '/Util/PHP.php',
    185             'phpunit_util_php_default' => '/Util/PHP/Default.php',
    186             'phpunit_util_php_windows' => '/Util/PHP/Windows.php',
    187             'phpunit_util_printer' => '/Util/Printer.php',
    188             'phpunit_util_string' => '/Util/String.php',
    189             'phpunit_util_test' => '/Util/Test.php',
    190             'phpunit_util_testdox_nameprettifier' => '/Util/TestDox/NamePrettifier.php',
    191             'phpunit_util_testdox_resultprinter' => '/Util/TestDox/ResultPrinter.php',
    192             'phpunit_util_testdox_resultprinter_html' => '/Util/TestDox/ResultPrinter/HTML.php',
    193             'phpunit_util_testdox_resultprinter_text' => '/Util/TestDox/ResultPrinter/Text.php',
    194             'phpunit_util_testsuiteiterator' => '/Util/TestSuiteIterator.php',
    195             'phpunit_util_type' => '/Util/Type.php',
    196             'phpunit_util_xml' => '/Util/XML.php'
    197           );
    198 
    199           $path = dirname(__FILE__);
    200       }
    201 
    202       $cn = strtolower($class);
    203 
    204       if (isset($classes[$cn])) {
    205           require $path . $classes[$cn];
    206       }
    207   }
    208 );
    209 
    210 // Symfony Yaml autoloader
    211 spl_autoload_register(
    212   function ($class) {
    213       if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Yaml')) {
    214           $file = sprintf(
    215             'Symfony/Component/Yaml%s.php',
    216 
    217             substr(
    218               str_replace('\\', '/', $class),
    219               strlen('Symfony\Component\Yaml')
    220             )
    221           );
    222 
    223           if (stream_resolve_include_path($file)) {
    224               require_once $file;
    225           }
    226       }
    227   }
    228 );
    229 
    230 if (stream_resolve_include_path('PHP/Invoker/Autoload.php')) {
    231     require_once 'PHP/Invoker/Autoload.php';
    232 }
    233 
    234 if (stream_resolve_include_path('PHPUnit/Extensions/Database/Autoload.php')) {
    235     require_once 'PHPUnit/Extensions/Database/Autoload.php';
    236 }
    237 
    238 if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumCommon/Autoload.php')) {
    239     require_once 'PHPUnit/Extensions/SeleniumCommon/Autoload.php';
    240 }
    241 
    242 else if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) {
    243     require_once 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php';
    244 }
    245 
    246 if (stream_resolve_include_path('PHPUnit/Extensions/Story/Autoload.php')) {
    247     require_once 'PHPUnit/Extensions/Story/Autoload.php';
    248 }