| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id$ |
| 3 |
/** |
/** |
| 4 |
* DrupalTest bootstrapping class |
* @file |
| 5 |
* |
* Provide bootstrap functionality for Drupal Tests. |
|
* This class provides all the functionality for bootstrapping Drupal |
|
|
* and also ensuring the test environment is set up before each test |
|
|
* and torn down after. |
|
| 6 |
* |
* |
| 7 |
* @package DrupalTest |
* @package DrupalTest |
| 8 |
* @author Jonathan H. Wage <jonwage@gmail.com> |
* @author Jonathan H. Wage <jonwage@gmail.com> |
| 9 |
* @author Christopher Hopper <christopher.jf.hopper@gmail.com> |
* @author Christopher Hopper <christopher.jf.hopper@gmail.com> |
| 10 |
|
*/ |
| 11 |
|
|
| 12 |
|
/** |
| 13 |
|
* DrupalTest bootstrapping class |
| 14 |
|
* |
| 15 |
|
* This class provides all the functionality for bootstrapping Drupal. |
| 16 |
|
* It also attempts to provide test isolation, in that the environment |
| 17 |
|
* for each test should be roughly equivalent each time. Namely, the |
| 18 |
|
* database needs to be provided in the same state for each test. This |
| 19 |
|
* is the testing principle known as isolation. |
| 20 |
|
* |
| 21 |
|
* @link http://www.phpunit.de/manual/3.3/en/phpunit-book.pdf |
| 22 |
|
* PHPUnit Manual Chapter 2. PHPUnit's Goals: Isolated, Isolated |
| 23 |
|
* versus quick to execute. |
| 24 |
*/ |
*/ |
| 25 |
class DrupalTest_Bootstrap |
class DrupalTest_Bootstrap |
| 26 |
{ |
{ |