bootstrap.php 525 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
/**
 * File bootstrap.php
 *
 * @author Edward Pfremmer <epfremme@nerdery.com>
 */

use Doctrine\Common\Annotations\AnnotationRegistry;

/**
 * PHPUnit Bootstrap
 *
 * Registers the Composer autoloader
 */
call_user_func(function() {
    if ( ! is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
        throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
    }

    require_once $autoloadFile;

    AnnotationRegistry::registerLoader('class_exists');
});