Permalink
Browse files

Disable token caching (in PHP_TokenStream, used by PHP_CodeCoverage) …

…by default (to reduce memory footprint).
  • Loading branch information...
1 parent 81ab540 commit 50a5460f2df563f387de92f50fa2913b2fdc908e @sebastianbergmann committed Oct 2, 2012
View
@@ -7,6 +7,7 @@ PHPUnit 3.7.2
-------------
* Implemented #656: Always clean up mock objects (and free up memory).
+* Disable token caching (in PHP_TokenStream, used by PHP_CodeCoverage) by default (to reduce memory footprint).
PHPUnit 3.7.1
-------------
@@ -754,7 +754,7 @@ protected function handleConfiguration(array &$arguments)
$arguments['processUncoveredFilesFromWhitelist'] = isset($arguments['processUncoveredFilesFromWhitelist']) ? $arguments['processUncoveredFilesFromWhitelist'] : FALSE;
$arguments['backupGlobals'] = isset($arguments['backupGlobals']) ? $arguments['backupGlobals'] : NULL;
$arguments['backupStaticAttributes'] = isset($arguments['backupStaticAttributes']) ? $arguments['backupStaticAttributes'] : NULL;
- $arguments['cacheTokens'] = isset($arguments['cacheTokens']) ? $arguments['cacheTokens'] : TRUE;
+ $arguments['cacheTokens'] = isset($arguments['cacheTokens']) ? $arguments['cacheTokens'] : FALSE;
$arguments['colors'] = isset($arguments['colors']) ? $arguments['colors'] : FALSE;
$arguments['convertErrorsToExceptions'] = isset($arguments['convertErrorsToExceptions']) ? $arguments['convertErrorsToExceptions'] : TRUE;
$arguments['convertNoticesToExceptions'] = isset($arguments['convertNoticesToExceptions']) ? $arguments['convertNoticesToExceptions'] : TRUE;
@@ -53,7 +53,7 @@
* <phpunit backupGlobals="true"
* backupStaticAttributes="false"
* bootstrap="/path/to/bootstrap.php"
- * cacheTokens="true"
+ * cacheTokens="false"
* colors="false"
* convertErrorsToExceptions="true"
* convertNoticesToExceptions="true"
@@ -551,7 +551,7 @@ public function getPHPUnitConfiguration()
if ($root->hasAttribute('cacheTokens')) {
$result['cacheTokens'] = $this->getBoolean(
- (string)$root->getAttribute('cacheTokens'), TRUE
+ (string)$root->getAttribute('cacheTokens'), FALSE
);
}
@@ -295,7 +295,7 @@ public function testPHPUnitConfigurationIsReadCorrectly()
'backupGlobals' => TRUE,
'backupStaticAttributes' => FALSE,
'bootstrap' => '/path/to/bootstrap.php',
- 'cacheTokens' => TRUE,
+ 'cacheTokens' => FALSE,
'colors' => FALSE,
'convertErrorsToExceptions' => TRUE,
'convertNoticesToExceptions' => TRUE,
@@ -3,7 +3,7 @@
<phpunit backupGlobals="true"
backupStaticAttributes="false"
bootstrap="/path/to/bootstrap.php"
- cacheTokens="true"
+ cacheTokens="false"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"

1 comment on commit 50a5460

Collaborator

edorian commented on 50a5460 Oct 2, 2012

Thanks :)

Please sign in to comment.