Permalink
Browse files

Add test autoloading in bootstrap for running tests

  • Loading branch information...
1 parent 5dba07b commit c2490f38a1e7c377f1b17dfc17aecd0bf8f56838 @henrikbjorn committed May 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/bootstrap.php
View
@@ -1,6 +1,6 @@
<?php
-if (!@include __DIR__ . '/../vendor/.composer/autoload.php') {
+if (!$loader = @include __DIR__ . '/../vendor/.composer/autoload.php') {
echo <<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
@@ -10,3 +10,5 @@
// Throw the correct error code, a build should fail if autoload isnt present.
exit(1);
}
+
+$loader->add('Stampie\Test', __DIR__ . '/../tests');

0 comments on commit c2490f3

Please sign in to comment.