bootstrap.php 507 B

123456789101112131415161718192021222324252627
  1. <?php
  2. if ( ! @include __DIR__ . '/../vendor/autoload.php' )
  3. {
  4. die(<<<'EOT'
  5. You must set up the project dependencies, run the following commands:
  6. wget http://getcomposer.org/composer.phar
  7. php composer.phar install --dev
  8. You can then run tests by calling:
  9. phpunit
  10. EOT
  11. );
  12. }
  13. function ezc_autoload( $className )
  14. {
  15. if ( strpos( $className, '_' ) === false )
  16. {
  17. ezcBase::autoload( $className );
  18. }
  19. }
  20. spl_autoload_register( 'ezc_autoload' );
  21. ezcBase::setWorkingDirectory(__DIR__);