added PHPUinit

This commit is contained in:
2022-12-28 12:39:02 +01:00
parent 97a4f63946
commit cb3cacb2dd
84 changed files with 18549 additions and 824 deletions
.env.test.gitignore
assets
bin
composer.jsoncomposer.lock
config
package.jsonphpunit.xml.dist
public/coverage
src/Command
symfony.lock
tests
yarn.lock

19
bin/phpunit Executable file

@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php
if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
}