bootstrap.php 566 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. function includeIfExists($file) {
  3. if (file_exists($file)) {
  4. return include $file;
  5. }
  6. }
  7. if (!extension_loaded('curl') || !function_exists('curl_init')) {
  8. die(<<<EOT
  9. cURL has to be enabled!
  10. EOT
  11. );
  12. }
  13. if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php'))) {
  14. die(<<<EOT
  15. You need to install the project dependencies using Composer:
  16. $ wget http://getcomposer.org/composer.phar
  17. OR
  18. $ curl -sS https://getcomposer.org/installer | php
  19. $ php composer.phar install --dev
  20. $ phpunit
  21. EOT
  22. );
  23. }
  24. $loader->add('Tests', __DIR__);