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

36 lines
1.2 KiB
PHP
Raw Normal View History

2008-02-09 02:20:35 +03:00
<?php
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once '../lib/Doctrine.php';
spl_autoload_register(array('Doctrine', 'autoload'));
// Some of these classes depends 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';
2008-02-09 02:20:35 +03:00
2008-02-11 22:56:26 +03:00
$modelDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models';
Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_MODEL_LOADING, Doctrine::MODEL_LOADING_CONSERVATIVE);
Doctrine::loadModels($modelDir);
/*
//spl_autoload_register(array('Doctrine_TestUtil', 'autoload'));
$modelDir = dirname(__FILE__)
. DIRECTORY_SEPARATOR . '..'
. DIRECTORY_SEPARATOR . 'models'
. DIRECTORY_SEPARATOR;
set_include_path(
get_include_path()
. PATH_SEPARATOR . $modelDir . 'cms'
. PATH_SEPARATOR . $modelDir . 'ecommerce'
. PATH_SEPARATOR . $modelDir . 'forum');
*/