bootstrap.php 525 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * File bootstrap.php
  4. *
  5. * @author Edward Pfremmer <epfremme@nerdery.com>
  6. */
  7. use Doctrine\Common\Annotations\AnnotationRegistry;
  8. /**
  9. * PHPUnit Bootstrap
  10. *
  11. * Registers the Composer autoloader
  12. */
  13. call_user_func(function() {
  14. if ( ! is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
  15. throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
  16. }
  17. require_once $autoloadFile;
  18. AnnotationRegistry::registerLoader('class_exists');
  19. });