1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/TestInit.php

33 lines
1.2 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.
*/
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';
require_once '../lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader();
$modelDir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models';
set_include_path(
get_include_path()
. PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR . '..' . 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
/*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';*/