Skip to content
Browse files

Update master

  • Loading branch information...
1 parent 0648437 commit fcf68f2f55a523bc3003ce0f92632a78655a0ecd @Abhoryo Abhoryo committed
Showing with 3 additions and 18 deletions.
  1. +3 −18 Tests/autoload.php.dist
View
21 Tests/autoload.php.dist
@@ -1,21 +1,6 @@
<?php
-// if the bundle is within a symfony project, try to reuse the project's autoload
-$autoload = __DIR__.'/../../../../../../app/autoload.php';
-
-// if the bundle is the project, try to use the composer's autoload for the tests
-$composerAutoload = __DIR__.'/../vendor/autoload.php';
-
-if (is_file($autoload)) {
- include $autoload;
-} elseif (is_file($composerAutoload)) {
- include $composerAutoload;
+if (!file_exists($file = __DIR__.'/../vendor/autoload.php')) {
+ die("Please install dependencies using Composer to run the test suite. \n");
} else {
- die('Unable to find autoload.php file in '.__DIR__.', please use composer to load dependencies:
-
-wget http://getcomposer.org/composer.phar
-php composer.phar install
-
-Visit http://getcomposer.org/ for more information.
-
-');
+ require_once $file;
}

0 comments on commit fcf68f2

Please sign in to comment.
Something went wrong with that request. Please try again.