TimeTrex Community Edition v16.2.0

This commit is contained in:
2022-12-13 07:10:06 +01:00
commit 472f000c1b
6810 changed files with 2636142 additions and 0 deletions

37
vendor/brianium/paratest/bin/paratest vendored Executable file
View File

@ -0,0 +1,37 @@
#!/usr/bin/env php
<?php
$cwd = getcwd();
$files = array(
dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'autoload.php',
dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php',
dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'
);
$found = false;
foreach ($files as $file) {
if (file_exists($file)) {
require $file;
$found = true;
break;
}
}
if (!$found) {
die(
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);
}
if (false === in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo PHP_EOL . 'ParaTest may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL;
exit(1);
}
assert(is_string($cwd));
\ParaTest\Console\Commands\ParaTestCommand::applicationFactory($cwd)->run();

3
vendor/brianium/paratest/bin/paratest.bat vendored Executable file
View File

@ -0,0 +1,3 @@
@ECHO OFF
SET BIN_TARGET=%~dp0\"../bin"\paratest
php "%BIN_TARGET%" %*

View File

@ -0,0 +1,10 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
use ParaTest\Util\PhpstormHelper;
require dirname(__DIR__, 1) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Util' . DIRECTORY_SEPARATOR . 'PhpstormHelper.php';
require PhpstormHelper::handleArgvFromPhpstorm($_SERVER['argv'], __DIR__ . '/paratest');

View File

@ -0,0 +1,47 @@
<?php
declare(strict_types=1);
use ParaTest\Runners\PHPUnit\Worker\WrapperWorker;
(static function (): void {
$opts = getopt('', ['write-to:']);
$composerAutoloadFiles = [
dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'autoload.php',
dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php',
dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php',
];
foreach ($composerAutoloadFiles as $file) {
if (file_exists($file)) {
require_once $file;
define('PHPUNIT_COMPOSER_INSTALL', $file);
break;
}
}
assert(isset($opts['write-to']) && is_string($opts['write-to']));
$writeTo = fopen($opts['write-to'], 'wb');
assert(is_resource($writeTo));
$i = 0;
while (true) {
$i++;
if (feof(STDIN)) {
exit;
}
$command = fgets(STDIN);
if ($command === false || $command === WrapperWorker::COMMAND_EXIT) {
exit;
}
$arguments = unserialize($command);
(new PHPUnit\TextUI\Command())->run($arguments, false);
fwrite($writeTo, WrapperWorker::TEST_EXECUTED_MARKER);
fflush($writeTo);
}
})();