2008-02-08 23:20:35 +00:00
|
|
|
<?php
|
2009-01-04 16:15:32 +00:00
|
|
|
/*
|
|
|
|
* This file bootstraps the test environment.
|
|
|
|
*/
|
2009-01-22 19:38:10 +00:00
|
|
|
namespace Doctrine\Tests;
|
2009-01-04 16:15:32 +00:00
|
|
|
|
2009-07-18 13:15:54 +00:00
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
|
2008-02-08 23:20:35 +00:00
|
|
|
require_once 'PHPUnit/Framework.php';
|
|
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
2009-09-11 19:50:48 +00:00
|
|
|
require_once __DIR__ . '/../../../lib/Doctrine/Common/IsolatedClassLoader.php';
|
2008-09-12 06:09:16 +00:00
|
|
|
|
2009-09-11 19:50:48 +00:00
|
|
|
$classLoader = new \Doctrine\Common\IsolatedClassLoader('Doctrine');
|
|
|
|
$classLoader->register();
|
2008-09-13 12:40:17 +00:00
|
|
|
|
|
|
|
set_include_path(
|
2009-09-11 19:50:48 +00:00
|
|
|
'.'
|
2009-01-24 16:56:44 +00:00
|
|
|
. PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
|
2009-07-18 13:15:54 +00:00
|
|
|
);
|
2009-09-11 19:50:48 +00:00
|
|
|
|