Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #94 phpspec.php not finding custom matcher functions with PEAR in…

…stallation
  • Loading branch information...
commit e6bdda97cd1510f17ba9962abefee9aa8e00d9cb 1 parent 241b68f
@MarcelloDuarte MarcelloDuarte authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/phpspec.php
View
5 scripts/phpspec.php
@@ -185,7 +185,8 @@
$installation = COMPOSER_INSTALL;
} else {
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
- @require_once 'PHPSpec/Loader/UniversalClassLoader.php';
+ @require_once "PHPSpec{$ds}Loader{$ds}UniversalClassLoader.php";
+ @require_once "PHPSpec{$ds}Matcher{$ds}Functions.php";
if (class_exists('PHPSpec\Loader\UniversalClassLoader')) {
$installation = PEAR_INSTALL;
$loader = new PHPSpec\Loader\UniversalClassLoader();
@@ -209,7 +210,7 @@
} elseif (is_dir($phpspecDir = $vendor . "{$ds}phpspec{$ds}phpspec{$ds}src{$ds}PHPSpec{$ds}")) {
require_once $phpspecDir . "{$ds}Matcher{$ds}Functions.php";
} else {
- die('hi');
+ die('Cannot find custom matcher closure definitions' . PHP_EOL);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.