[Bridge/PhpUnit] Require .php file to fix problem with extra shebang

This commit is a part of fix for https://github.com/symfony/symfony/issues/27035

The other part is https://github.com/symfony/symfony/pull/31364
This commit is contained in:
Dmitry Simushev
2019-05-05 22:48:32 +02:00
committed by Nicolas Grekas
parent c466e7a6cf
commit 8657acd1ad
7 changed files with 24 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
../4.1/.env.test
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php
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 (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
}
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
putenv('SYMFONY_PHPUNIT_REMOVE=');
}
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
+1
View File
@@ -0,0 +1 @@
../../../../symfony/framework-bundle/3.3/config/bootstrap.php
+1
View File
@@ -0,0 +1 @@
../4.1/manifest.json
+1
View File
@@ -0,0 +1 @@
../3.3/phpunit.xml.dist
+1
View File
@@ -0,0 +1 @@
../4.1/post-install.txt