Skip to content

Commit 1954056

Browse files
committed
better error message for running global tests
1 parent 4269b48 commit 1954056

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testing/bootstrap.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
throw new Exception('You are not in a test directory');
77
}
88

9+
/**
10+
* Our tests load global dependencies using coomposer
11+
*/
912
if (!trait_exists(Google\Cloud\TestUtils\TestTrait::class)) {
10-
throw new Exception('You need to run "bash testing/composer.sh" to installed the required global packages');
13+
throw new Exception('You need to run "bash testing/composer.sh" to '
14+
. 'installed the required global packages. Be sure to run these tests '
15+
. 'using the global phpunit package (~/.composer/vendor/bin/phpunit)');
1116
}
1217

1318
if (file_exists($testDir . '/composer.json')) {

0 commit comments

Comments
 (0)