Skip to content
Snippets Groups Projects
Unverified Commit cbccba94 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3182653 by longwave, Eli-T, devad: PHPUnit 9.4.3 Fatal error: Trait...

Issue #3182653 by longwave, Eli-T, devad: PHPUnit 9.4.3 Fatal error: Trait 'Prophecy\PhpUnit\ProphecyTrait' not found
parent 3b82a3b9
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
......@@ -4,6 +4,12 @@
use Prophecy\PhpUnit\ProphecyTrait;
// @todo Replace with a proper dependency when we stop supporting PHPUnit 8.
if (!trait_exists(ProphecyTrait::class)) {
print "Drupal requires Prophecy PhpUnit when using PHPUnit 9 or greater. Please use 'composer require --dev phpspec/prophecy-phpunit:^2' to ensure that it is present.\n";
exit(1);
}
/**
* Drupal's forward compatibility layer with multiple versions of PHPUnit.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment