Skip to content

Commit

Permalink
Updated test bootstrapper to fall back to included autoloader
Browse files Browse the repository at this point in the history
In the event that composer is not present, the test suite will fall
back to the provided autoloader. As part of this change the message for
when "composer install" hasn't been run has been made more predominate.
  • Loading branch information
tedivm committed Dec 27, 2012
1 parent 0d4b906 commit 3d6f5c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
$filename = __DIR__ .'/../vendor/autoload.php';

if (!file_exists($filename)) {
throw new Exception("You need to execute `composer install` before running the tests. (vendors are required for test execution)");
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL;
echo "You need to execute `composer install` before running the tests." . PHP_EOL;
echo "(vendors are required for test execution)" . PHP_EOL;
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL . PHP_EOL;
$filename = __DIR__ .'/../autoload.php';
}

require_once $filename;

0 comments on commit 3d6f5c7

Please sign in to comment.