Skip to content
Permalink
Browse files

Making memory leak test work with margins present in php5.3.1

  • Loading branch information...
markstory committed Feb 28, 2010
1 parent 428ee19 commit 65169971d498c0d85eb1d897ccfc392baf478d96
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/view/theme.test.php
@@ -321,7 +321,7 @@ function testMissingLayout() {
* @return void
*/
function testMemoryLeakInPaths() {
if ($this->skipIf(!function_exists('memory_get_usage'), 'No memory measurement function, fail. %s')) {
if ($this->skipIf(!function_exists('memory_get_usage'), 'No memory measurement function, cannot test for possible memory leak. %s')) {
return;
}
$this->Controller->plugin = null;
@@ -338,7 +338,7 @@ function testMemoryLeakInPaths() {
$View->element('test_element');
}
$end = memory_get_usage();
$this->assertWithinMargin($start, $end, 2000);
$this->assertWithinMargin($start, $end, 3500);
}
}
?>

0 comments on commit 6516997

Please sign in to comment.
You can’t perform that action at this time.