PHPUnit: move environment variable into PHPUnit config file (#10062)
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>pull/10071/head
parent
e5a50d1f06
commit
5f48f87501
|
@ -42,9 +42,14 @@ To achieve this, you need to acquire the Composer source code:
|
||||||
3. Run Composer to get the dependencies: `cd composer && php ../composer.phar install`
|
3. Run Composer to get the dependencies: `cd composer && php ../composer.phar install`
|
||||||
|
|
||||||
You can run the test suite by executing `vendor/bin/simple-phpunit` when inside the
|
You can run the test suite by executing `vendor/bin/simple-phpunit` when inside the
|
||||||
composer directory, and run Composer by executing the `bin/composer`. To test
|
composer directory, and run Composer by executing the `bin/composer`.
|
||||||
your modified Composer code against another project, run `php
|
|
||||||
/path/to/composer/bin/composer` inside that project's directory.
|
For running the tests against the most recent PHP versions (PHP 8.0/8.1), you will
|
||||||
|
need to run `composer update --ignore-platform-reqs && git checkout composer.lock` before running
|
||||||
|
the `vendor/bin/simple-phpunit` command.
|
||||||
|
|
||||||
|
To test your modified Composer code against another project, run
|
||||||
|
`php /path/to/composer/bin/composer` inside that project's directory.
|
||||||
|
|
||||||
Contributing policy
|
Contributing policy
|
||||||
-------------------
|
-------------------
|
||||||
|
|
|
@ -12,7 +12,6 @@ env:
|
||||||
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
|
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
|
||||||
COMPOSER_UPDATE_FLAGS: ""
|
COMPOSER_UPDATE_FLAGS: ""
|
||||||
COMPOSER_TESTS_ARE_RUNNING: "1"
|
COMPOSER_TESTS_ARE_RUNNING: "1"
|
||||||
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
/composer.phar
|
/composer.phar
|
||||||
/vendor
|
/vendor
|
||||||
/nbproject
|
/nbproject
|
||||||
|
.phpunit.result.cache
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
.vagrant
|
.vagrant
|
||||||
Vagrantfile
|
Vagrantfile
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
>
|
>
|
||||||
<php>
|
<php>
|
||||||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0"/>
|
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0"/>
|
||||||
|
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1"/>
|
||||||
<env name="COMPOSER_TEST_SUITE" value="1"/>
|
<env name="COMPOSER_TEST_SUITE" value="1"/>
|
||||||
</php>
|
</php>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
>
|
>
|
||||||
<php>
|
<php>
|
||||||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
|
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
|
||||||
|
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1"/>
|
||||||
</php>
|
</php>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Full Composer Test Suite">
|
<testsuite name="Full Composer Test Suite">
|
||||||
|
|
Loading…
Reference in New Issue