|
@@ -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';
|