TestInit.php 581 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
require_once __DIR__ . '/../../../lib/Doctrine/Common/IsolatedClassLoader.php';
guilhermeblanco's avatar
guilhermeblanco committed
12

13 14
$classLoader = new \Doctrine\Common\IsolatedClassLoader('Doctrine');
$classLoader->register();
15 16

set_include_path(
17 18 19
    __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
    . PATH_SEPARATOR .
    get_include_path() 
20
);
21