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
|
|
|
// checking for existance should not be necessary, remove as soon as possible
|
2009-01-22 22:38:10 +03:00
|
|
|
//$classLoader->setCheckFileExists(true);
|
2008-09-13 16:40:17 +04:00
|
|
|
$classLoader->register();
|
|
|
|
|
|
|
|
$modelDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models';
|
|
|
|
set_include_path(
|
|
|
|
get_include_path()
|
2009-01-22 22:38:10 +03:00
|
|
|
. PATH_SEPARATOR . dirname(__FILE__) . 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'
|
|
|
|
);
|
|
|
|
|
|
|
|
// Some of these classes depend on Doctrine_* classes
|
2009-01-22 22:38:10 +03:00
|
|
|
/*require_once 'DoctrineTestCase.php';
|
|
|
|
require_once 'TestUtil.php';
|
|
|
|
require_once 'DbalTestCase.php';
|
|
|
|
require_once 'OrmTestCase.php';
|
|
|
|
require_once 'OrmFunctionalTestCase.php';
|
|
|
|
require_once 'DoctrineTestSuite.php';
|
|
|
|
require_once 'OrmTestSuite.php';
|
|
|
|
require_once 'OrmFunctionalTestSuite.php';
|
|
|
|
require_once 'DbalTestSuite.php';*/
|