Skip to content

Commit 660a1ae

Browse files
committed
Merge pull request #15 from symfony/phpunit-bootstrap-fixes
fixed path to composer autoload, exit status code
2 parents 0b5046d + 9cd2754 commit 660a1ae

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Tests/bootstrap.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<?php
22

3-
if (!@include __DIR__ . '/../vendor/.composer/autoload.php') {
4-
die("You must set up the project dependencies, run the following commands:
5-
wget http://getcomposer.org/composer.phar
6-
php composer.phar install
7-
");
3+
if (!@include __DIR__ . '/../vendor/autoload.php') {
4+
echo <<<EOF
5+
You must set up the project dependencies, run the following commands:
6+
7+
wget http://getcomposer.org/composer.phar
8+
php composer.phar install
9+
10+
EOF;
11+
12+
exit(1);
813
}
914

1015
spl_autoload_register(function($class) {

0 commit comments

Comments
 (0)