TestInit.php 860 Bytes
Newer Older
jwage's avatar
jwage committed
1
<?php
romanb's avatar
romanb committed
2 3 4
/*
 * This file bootstraps the test environment.
 */
5
namespace Doctrine\Tests;
romanb's avatar
romanb committed
6

7 8
error_reporting(E_ALL | E_STRICT);

jwage's avatar
jwage committed
9 10
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
11 12 13 14
require_once __DIR__ . '/../../../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php';

$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', __DIR__ . '/../../../lib/vendor/doctrine-common/lib');
$classLoader->register();
guilhermeblanco's avatar
guilhermeblanco committed
15

16
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
17
$classLoader->register();
18

19 20 21
$classLoader = new \Doctrine\Common\ClassLoader('Symfony', __DIR__ . "/../../../lib/vendor");
$classLoader->register();

22
set_include_path(
23 24 25
    __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
    . PATH_SEPARATOR .
    get_include_path() 
26
);