summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r--phpspec-autoload.php14
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,
]);
+