diff options
author | Remi Collet <remi@remirepo.net> | 2017-08-07 14:21:44 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-08-07 14:21:44 +0200 |
commit | e6d46b2747615242101208c799d7aac954611fc8 (patch) | |
tree | b648ba9c8507a49e751ff51f7600c82093b2051d /phpspec-autoload.php | |
parent | aafdd610c6c68f2a30924e4ac54e42269825dd65 (diff) |
v3.4.2
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r-- | phpspec-autoload.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/phpspec-autoload.php b/phpspec-autoload.php index 1fbcc5d..64f544a 100644 --- a/phpspec-autoload.php +++ b/phpspec-autoload.php @@ -12,12 +12,18 @@ if (is_dir(getcwd().'/spec')) { } // Dependencies (Rely on include_path as in PHPUnit dependencies + circular dependencies) +if (version_compare(PHP_VERSION, '7', '>')) { + $exp = [ + 'SebastianBergmann/Exporter3/autoload.php', + 'SebastianBergmann/Exporter/autoload.php', + ]; +} else { + $exp = 'SebastianBergmann/Exporter/autoload.php'; +} \Fedora\Autoloader\Dependencies::required([ 'phpspec/php-diff/autoload.php', 'Prophecy/autoload.php', 'Doctrine/Instantiator/autoload.php', - [ - 'SebastianBergmann/Exporter3/autoload.php', - 'SebastianBergmann/Exporter/autoload.php', - ], + $exp, ]); + |