Changeset 2696

Show
Ignore:
Timestamp:
08/22/08 12:58:55 (5 months ago)
Author:
felix
Message:

bootstrap an agavi installation for each test in a separate method, refs #380

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/felix-testing-implementation/src/testing/templates/AgaviTestMethod.tpl

    r2238 r2696  
    66// end copied from PHPUnit/Util/Process/TestMethod.tpl 
    77 
     8// bootstrap an agavi installation, so tests can run without problems 
    89require_once('testing.php'); 
     10AgaviConfig::fromArray($GLOBALS['_ENV']['AGAVI']); 
     11unset($GLOBALS['_ENV']['AGAVI']); 
     12 
     13AgaviTesting::bootstrap(); 
    914 
    1015// copied from PHPUnit/Util/Process/TestMethod.tpl