Skip to content
Snippets Groups Projects
Unverified Commit 94d0c1f1 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

(cherry picked from commit cbccba94)
parent cf4e2945
Branches
Tags
4 merge requests!1285Issue #3240655 by elfakhar Aligne the active border,!541Issue #3123070: Fix 'PSR2.Classes.PropertyDeclaration.Underscore' coding standard,!463Resolve #3205025 "Class align center for media",!386Allow multiple vocabularies in the taxonomy filter
......@@ -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.
Please register or to comment