mirror of
https://github.com/symfony/recipes.git
synced 2026-09-14 16:46:24 +03:00
[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:
committed by
Nicolas Grekas
parent
c466e7a6cf
commit
8657acd1ad
+1
@@ -0,0 +1 @@
|
||||
../4.1/.env.test
|
||||
Executable
+19
@@ -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';
|
||||
@@ -0,0 +1 @@
|
||||
../../../../symfony/framework-bundle/3.3/config/bootstrap.php
|
||||
@@ -0,0 +1 @@
|
||||
../4.1/manifest.json
|
||||
@@ -0,0 +1 @@
|
||||
../3.3/phpunit.xml.dist
|
||||
@@ -0,0 +1 @@
|
||||
../4.1/post-install.txt
|
||||
Reference in New Issue
Block a user