christian 5 月之前
父節點
當前提交
d8a0bf1a07
共有 5 個文件被更改,包括 238 次插入0 次删除
  1. 7 0
      html/autoload.php
  2. 26 0
      html/autoload_psr4.php
  3. 80 0
      html/autoload_real.php
  4. 120 0
      html/phpunit
  5. 5 0
      html/phpunit.bat

+ 7 - 0
html/autoload.php 查看文件

@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+// autoload.php @generated by Composer
4
+
5
+require_once __DIR__ . '/composer/autoload_real.php';
6
+
7
+return ComposerAutoloaderInit1b0ef6c7316885e8a5b403c7827a4561::getLoader();

+ 26 - 0
html/autoload_psr4.php 查看文件

@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+// autoload_psr4.php @generated by Composer
4
+
5
+$vendorDir = dirname(dirname(__FILE__));
6
+$baseDir = dirname($vendorDir);
7
+
8
+return array(
9
+    'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/type-resolver/src', $vendorDir . '/phpdocumentor/reflection-docblock/src'),
10
+    'ZipStream\\' => array($vendorDir . '/maennchen/zipstream-php/src'),
11
+    'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
12
+    'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
13
+    'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
14
+    'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
15
+    'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
16
+    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
17
+    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
18
+    'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'),
19
+    'PhpOffice\\PhpSpreadsheet\\' => array($vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet'),
20
+    'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'),
21
+    'Matrix\\' => array($vendorDir . '/markbaker/matrix/classes/src'),
22
+    'JsonMachine\\' => array($vendorDir . '/halaxa/json-machine/src'),
23
+    'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
24
+    'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
25
+    'Complex\\' => array($vendorDir . '/markbaker/complex/classes/src'),
26
+);

+ 80 - 0
html/autoload_real.php 查看文件

@@ -0,0 +1,80 @@
1
+<?php
2
+
3
+// autoload_real.php @generated by Composer
4
+
5
+class ComposerAutoloaderInit1b0ef6c7316885e8a5b403c7827a4561
6
+{
7
+    private static $loader;
8
+
9
+    public static function loadClassLoader($class)
10
+    {
11
+        if ('Composer\Autoload\ClassLoader' === $class) {
12
+            require __DIR__ . '/ClassLoader.php';
13
+        }
14
+    }
15
+
16
+    /**
17
+     * @return \Composer\Autoload\ClassLoader
18
+     */
19
+    public static function getLoader()
20
+    {
21
+        if (null !== self::$loader) {
22
+            return self::$loader;
23
+        }
24
+
25
+        require __DIR__ . '/platform_check.php';
26
+
27
+        spl_autoload_register(array('ComposerAutoloaderInit1b0ef6c7316885e8a5b403c7827a4561', 'loadClassLoader'), true, true);
28
+        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+        spl_autoload_unregister(array('ComposerAutoloaderInit1b0ef6c7316885e8a5b403c7827a4561', 'loadClassLoader'));
30
+
31
+        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
+        if ($useStaticLoader) {
33
+            require __DIR__ . '/autoload_static.php';
34
+
35
+            call_user_func(\Composer\Autoload\ComposerStaticInit1b0ef6c7316885e8a5b403c7827a4561::getInitializer($loader));
36
+        } else {
37
+            $map = require __DIR__ . '/autoload_namespaces.php';
38
+            foreach ($map as $namespace => $path) {
39
+                $loader->set($namespace, $path);
40
+            }
41
+
42
+            $map = require __DIR__ . '/autoload_psr4.php';
43
+            foreach ($map as $namespace => $path) {
44
+                $loader->setPsr4($namespace, $path);
45
+            }
46
+
47
+            $classMap = require __DIR__ . '/autoload_classmap.php';
48
+            if ($classMap) {
49
+                $loader->addClassMap($classMap);
50
+            }
51
+        }
52
+
53
+        $loader->register(true);
54
+
55
+        if ($useStaticLoader) {
56
+            $includeFiles = Composer\Autoload\ComposerStaticInit1b0ef6c7316885e8a5b403c7827a4561::$files;
57
+        } else {
58
+            $includeFiles = require __DIR__ . '/autoload_files.php';
59
+        }
60
+        foreach ($includeFiles as $fileIdentifier => $file) {
61
+            composerRequire1b0ef6c7316885e8a5b403c7827a4561($fileIdentifier, $file);
62
+        }
63
+
64
+        return $loader;
65
+    }
66
+}
67
+
68
+/**
69
+ * @param string $fileIdentifier
70
+ * @param string $file
71
+ * @return void
72
+ */
73
+function composerRequire1b0ef6c7316885e8a5b403c7827a4561($fileIdentifier, $file)
74
+{
75
+    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
+        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
77
+
78
+        require $file;
79
+    }
80
+}

+ 120 - 0
html/phpunit 查看文件

@@ -0,0 +1,120 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+/**
5
+ * Proxy PHP file generated by Composer
6
+ *
7
+ * This file includes the referenced bin path (../phpunit/phpunit/phpunit)
8
+ * using a stream wrapper to prevent the shebang from being output on PHP<8
9
+ *
10
+ * @generated
11
+ */
12
+
13
+namespace Composer;
14
+
15
+$GLOBALS['_composer_bin_dir'] = __DIR__;
16
+$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
17
+$GLOBALS['__PHPUNIT_ISOLATION_EXCLUDE_LIST'] = $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'] = array(realpath(__DIR__ . '/..'.'/phpunit/phpunit/phpunit'));
18
+
19
+if (PHP_VERSION_ID < 80000) {
20
+    if (!class_exists('Composer\BinProxyWrapper')) {
21
+        /**
22
+         * @internal
23
+         */
24
+        final class BinProxyWrapper
25
+        {
26
+            private $handle;
27
+            private $position;
28
+            private $realpath;
29
+
30
+            public function stream_open($path, $mode, $options, &$opened_path)
31
+            {
32
+                // get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
33
+                $opened_path = substr($path, 17);
34
+                $this->realpath = realpath($opened_path) ?: $opened_path;
35
+                $opened_path = 'phpvfscomposer://'.$this->realpath;
36
+                $this->handle = fopen($this->realpath, $mode);
37
+                $this->position = 0;
38
+
39
+                return (bool) $this->handle;
40
+            }
41
+
42
+            public function stream_read($count)
43
+            {
44
+                $data = fread($this->handle, $count);
45
+
46
+                if ($this->position === 0) {
47
+                    $data = preg_replace('{^#!.*\r?\n}', '', $data);
48
+                }
49
+                $data = str_replace('__DIR__', var_export(dirname($this->realpath), true), $data);
50
+                $data = str_replace('__FILE__', var_export($this->realpath, true), $data);
51
+
52
+                $this->position += strlen($data);
53
+
54
+                return $data;
55
+            }
56
+
57
+            public function stream_cast($castAs)
58
+            {
59
+                return $this->handle;
60
+            }
61
+
62
+            public function stream_close()
63
+            {
64
+                fclose($this->handle);
65
+            }
66
+
67
+            public function stream_lock($operation)
68
+            {
69
+                return $operation ? flock($this->handle, $operation) : true;
70
+            }
71
+
72
+            public function stream_seek($offset, $whence)
73
+            {
74
+                if (0 === fseek($this->handle, $offset, $whence)) {
75
+                    $this->position = ftell($this->handle);
76
+                    return true;
77
+                }
78
+
79
+                return false;
80
+            }
81
+
82
+            public function stream_tell()
83
+            {
84
+                return $this->position;
85
+            }
86
+
87
+            public function stream_eof()
88
+            {
89
+                return feof($this->handle);
90
+            }
91
+
92
+            public function stream_stat()
93
+            {
94
+                return array();
95
+            }
96
+
97
+            public function stream_set_option($option, $arg1, $arg2)
98
+            {
99
+                return true;
100
+            }
101
+
102
+            public function url_stat($path, $flags)
103
+            {
104
+                $path = substr($path, 17);
105
+                if (file_exists($path)) {
106
+                    return stat($path);
107
+                }
108
+
109
+                return false;
110
+            }
111
+        }
112
+    }
113
+
114
+    if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
115
+        include("phpvfscomposer://" . __DIR__ . '/..'.'/phpunit/phpunit/phpunit');
116
+        exit(0);
117
+    }
118
+}
119
+
120
+include __DIR__ . '/..'.'/phpunit/phpunit/phpunit';

+ 5 - 0
html/phpunit.bat 查看文件

@@ -0,0 +1,5 @@
1
+@ECHO OFF
2
+setlocal DISABLEDELAYEDEXPANSION
3
+SET BIN_TARGET=%~dp0/phpunit
4
+SET COMPOSER_BIN_DIR=%~dp0
5
+php "%BIN_TARGET%" %*