1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/lib/DoctrineTestInit.php

35 lines
1.3 KiB
PHP
Raw Normal View History

2008-02-09 02:20:35 +03:00
<?php
2009-01-04 19:15:32 +03:00
/*
* This file bootstraps the test environment.
*/
2008-02-09 02:20:35 +03:00
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once '../lib/Doctrine/Common/ClassLoader.php';
$classLoader = new Doctrine_Common_ClassLoader();
// checking for existance should not be necessary, remove as soon as possible
$classLoader->setCheckFileExists(true);
$classLoader->register();
$modelDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models';
set_include_path(
get_include_path()
. PATH_SEPARATOR . dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
. 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
2008-02-09 02:20:35 +03:00
require_once 'Doctrine_TestCase.php';
2008-02-10 22:08:31 +03:00
require_once 'Doctrine_TestUtil.php';
2008-02-09 21:59:19 +03:00
require_once 'Doctrine_DbalTestCase.php';
require_once 'Doctrine_OrmTestCase.php';
2008-05-17 16:22:24 +04:00
require_once 'Doctrine_OrmFunctionalTestCase.php';
2008-02-09 02:20:35 +03:00
require_once 'Doctrine_TestSuite.php';
2008-02-09 21:59:19 +03:00
require_once 'Doctrine_OrmTestSuite.php';
2008-05-17 16:22:24 +04:00
require_once 'Doctrine_OrmFunctionalTestSuite.php';
2008-02-09 21:59:19 +03:00
require_once 'Doctrine_DbalTestSuite.php';