summaryrefslogtreecommitdiffstats
path: root/php-phpspec-prophecy-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-04-19 15:46:22 +0200
committerRemi Collet <remi@remirepo.net>2018-04-19 15:46:22 +0200
commitde6520c626b3def89bc79034c083a4b46ec033ed (patch)
tree0a5903064835964105679e9b312b31a916c809cd /php-phpspec-prophecy-autoload.php
parent390f757799e3aa635f23b1d75885dc29e96777a5 (diff)
v1.7.6
Diffstat (limited to 'php-phpspec-prophecy-autoload.php')
-rw-r--r--php-phpspec-prophecy-autoload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-phpspec-prophecy-autoload.php b/php-phpspec-prophecy-autoload.php
index 0698ea8..3a2b120 100644
--- a/php-phpspec-prophecy-autoload.php
+++ b/php-phpspec-prophecy-autoload.php
@@ -22,7 +22,9 @@ if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autol
unset($dep);
if (!class_exists('SebastianBergmann\\Comparator\\Comparator')) { // v2 from phpunit, v1 from phpspec
- require_once (stream_resolve_include_path('SebastianBergmann/Comparator2/autoload.php') ?: 'SebastianBergmann/Comparator/autoload.php');
+ require_once (stream_resolve_include_path('SebastianBergmann/Comparator3/autoload.php') ?:
+ (stream_resolve_include_path('SebastianBergmann/Comparator2/autoload.php') ?:
+ 'SebastianBergmann/Comparator/autoload.php'));
}
if (!class_exists('SebastianBergmann\\RecursionContext\\Context')) { // v3 from phpunit, v2 from phpspec (via exporter)
require_once (stream_resolve_include_path('SebastianBergmann/RecursionContext3/autoload.php') ?: 'SebastianBergmann/RecursionContext/autoload.php');