bootstrap.php 554B

123456789101112131415161718192021
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. if (!defined('TWIG_LIB_DIR') || 'NOT_SET' === TWIG_LIB_DIR) {
  11. die('The path to the Twig lib/ directory must be defined in phpunit.xml configuration.');
  12. }
  13. require_once TWIG_LIB_DIR.'/Twig/Autoloader.php';
  14. Twig_Autoloader::register();
  15. require_once dirname(__FILE__).'/../lib/Twig/Extensions/Autoloader.php';
  16. Twig_Extensions_Autoloader::register();