TestInit.php 524 B

1234567891011121314151617
  1. <?php
  2. /*
  3. * This file bootstraps the test environment.
  4. */
  5. namespace Doctrine\Tests;
  6. error_reporting(E_ALL | E_STRICT);
  7. if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
  8. $loader = require_once __DIR__ . '/../../../vendor/autoload.php';
  9. } elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
  10. $loader = require __DIR__ . '/../../../vendor/autoload.php';
  11. } else {
  12. throw new \RuntimeException('Could not locate composer autoloader');
  13. }
  14. $loader->add('Doctrine\Tests', __DIR__ . '/../../');