Changeset 4525

Show
Ignore:
Timestamp:
06/18/08 18:51:28 (13 months ago)
Author:
isleshocky77
Message:

Changing this line to use a defined constant DOCTRINE_DIR if present. This will allow tests
to be run from another file such as a pake task

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/tests/run.php

    r4519 r4525  
    55 
    66require_once(dirname(__FILE__) . '/DoctrineTest.php'); 
    7 require_once dirname(__FILE__) . '/../lib/Doctrine.php'; 
     7require_once((defined('DOCTRINE_DIR') ? DOCTRINE_DIR : dirname(__FILE__) . '/../lib/') .'Doctrine.php'); 
    88spl_autoload_register(array('Doctrine', 'autoload')); 
    99spl_autoload_register(array('DoctrineTest','autoload')); 
     
    8989$driver->addTestCase(new Doctrine_Connection_Oracle_TestCase()); 
    9090$driver->addTestCase(new Doctrine_Connection_Sqlite_TestCase()); 
    91 $driver->addTestCase(new Doctrine_Connection_Mssql_TestCase());  
     91$driver->addTestCase(new Doctrine_Connection_Mssql_TestCase()); 
    9292$driver->addTestCase(new Doctrine_Connection_Mysql_TestCase()); 
    9393$driver->addTestCase(new Doctrine_Connection_Firebird_TestCase());