parent
18111af9a4
commit
23268575b0
@ -1,18 +1,16 @@ |
||||
#!/usr/bin/env php |
||||
<?php |
||||
if (file_exists(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) { |
||||
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit'; |
||||
} else { |
||||
if (!file_exists(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); |
||||
} |
||||
|
||||
if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) { |
||||
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n"; |
||||
exit(1); |
||||
} |
||||
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) { |
||||
putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml'); |
||||
} |
||||
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) { |
||||
putenv('SYMFONY_PHPUNIT_VERSION=6.5'); |
||||
} |
||||
if (false === getenv('SYMFONY_PHPUNIT_DIR')) { |
||||
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit'); |
||||
} |
||||
if (false === getenv('SYMFONY_PHPUNIT_DIR')) { |
||||
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit'); |
||||
} |
||||
|
||||
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit'; |
||||
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php'; |
||||
} |
||||
|
||||
@ -1,2 +1,2 @@ |
||||
twig: |
||||
strict_variables: false |
||||
strict_variables: true |
||||
|
||||
Loading…
Reference in new issue