From c7a346d398b65900fa42235e32c5976cc7e5887c Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Tue, 16 Sep 2014 16:13:24 +0200 Subject: [PATCH 1/2] Update bootstrap.php The phpunit error message should give the full filename as the error details. --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index d0dcdba7ff..71a0f17f99 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -31,7 +31,7 @@ if (file_exists($vendor . "/autoload.php")) { require $vendor . "/autoload.php"; } else { - throw new Exception("Unable to load dependencies"); + throw new Exception("Unable to load dependencies from file '" . $vendor . "/autoload.php'"); } } From 202c050cf24e9c558898563fb6152c8633f399b5 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Tue, 16 Sep 2014 23:29:31 +0200 Subject: [PATCH 2/2] Update bootstrap.php Give also a hint to use Composer. This will solve this issue in most cases. --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 71a0f17f99..276c6ea644 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -31,7 +31,7 @@ if (file_exists($vendor . "/autoload.php")) { require $vendor . "/autoload.php"; } else { - throw new Exception("Unable to load dependencies from file '" . $vendor . "/autoload.php'"); + throw new Exception("Unable to load dependency file '" . $vendor . "/autoload.php'. Did you use Composer to install PHPWord?"); } }