2008-02-09 02:20:35 +03:00
|
|
|
<?php
|
2009-01-04 19:15:32 +03:00
|
|
|
/*
|
|
|
|
* This file bootstraps the test environment.
|
|
|
|
*/
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\Tests;
|
2009-01-04 19:15:32 +03:00
|
|
|
|
2008-02-09 02:20:35 +03:00
|
|
|
require_once 'PHPUnit/Framework.php';
|
|
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
2008-09-13 16:40:17 +04:00
|
|
|
require_once '../lib/Doctrine/Common/ClassLoader.php';
|
2008-09-12 10:09:16 +04:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
$classLoader = new \Doctrine\Common\ClassLoader();
|
2008-09-13 16:40:17 +04:00
|
|
|
|
2009-01-24 19:56:44 +03:00
|
|
|
$modelDir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models';
|
2008-09-13 16:40:17 +04:00
|
|
|
set_include_path(
|
|
|
|
get_include_path()
|
2009-01-24 19:56:44 +03:00
|
|
|
. PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
|
2008-09-13 16:40:17 +04:00
|
|
|
. PATH_SEPARATOR . $modelDir . DIRECTORY_SEPARATOR . 'cms'
|
|
|
|
. PATH_SEPARATOR . $modelDir . DIRECTORY_SEPARATOR . 'company'
|
|
|
|
. PATH_SEPARATOR . $modelDir . DIRECTORY_SEPARATOR . 'ecommerce'
|
|
|
|
. PATH_SEPARATOR . $modelDir . DIRECTORY_SEPARATOR . 'forum'
|
|
|
|
);
|
|
|
|
|