[contributions:chop] /modules/phpunit/lib/DrupalTest TestCase.php
User: chop Branch: HEAD Date: Tue, 24 Feb 2009 08:22:05 +0000 Modified files: /modules/phpunit/lib/DrupalTest TestCase.php Log message: Update the DrupalTest_TestCase: - Turn off the backup and restore of global variables by PHPUnit, as this destroys the MySQL-Link resource for the active Drupal database in $GLOBALS['active_db'] ; - Suppress the Devel Shutdown function to prevent devel_footer output; - Switch the current wording directory / folder to the Drupal core install path (location of index.php) before each test case runs so that Drupal can find files and folders where it expects them to be; - Switch back to the previous working directory / folder after each test case runs so that PHPUnit can find files and folders where it expects them to be - This should only be required when PHP_SAPI == 'CLI'. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/phpunit/lib/Drupal...
participants (1)
-
drupal-cvs@drupal.org