summaryrefslogtreecommitdiffstats
path: root/core/scripts
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-12-22 12:47:46 (GMT)
committerNathaniel Catchpole2017-12-22 12:47:46 (GMT)
commit03fd77c842e3606da859e5bb7c04b2da0b85c720 (patch)
tree59316aff3c5931760756c5eb73333ee10fe67997 /core/scripts
parent4e5b4b09bde155d50ed3b84ee1fa399347bb83ef (diff)
Issue #2927806 by alexpott, mondrake, jibran, Mile23: Use PHPUnit 6 for testing when PHP version >= 7.2
Diffstat (limited to 'core/scripts')
-rwxr-xr-xcore/scripts/run-tests.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 5ebf9f0..407d87a 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -793,7 +793,11 @@ function simpletest_script_run_one_test($test_id, $test_class) {
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
}
else {
- putenv('SYMFONY_DEPRECATIONS_HELPER=strict');
+ // Prevent deprecations caused by vendor code calling deprecated code.
+ // This also prevents mock objects in PHPUnit 6 triggering silenced
+ // deprecations from breaking the test suite. We should consider changing
+ // this to 'strict' once PHPUnit 4 is no longer used.
+ putenv('SYMFONY_DEPRECATIONS_HELPER=weak_vendors');
}
if (is_subclass_of($test_class, TestCase::class)) {
$status = simpletest_script_run_phpunit($test_id, $test_class);