Blame view

sources/3rdparty/doctrine/dbal/tests/Doctrine/Tests/TestInit.php 524 Bytes
31b7f2792   Kload   Upgrade to ownclo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  /*
   * This file bootstraps the test environment.
   */
  namespace Doctrine\Tests;
  
  error_reporting(E_ALL | E_STRICT);
  
  if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
      $loader = require_once __DIR__ . '/../../../vendor/autoload.php';
  } elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
      $loader = require __DIR__ . '/../../../vendor/autoload.php';
  } else {
      throw new \RuntimeException('Could not locate composer autoloader');
  }
  
  $loader->add('Doctrine\Tests', __DIR__ . '/../../');