/[drupal]/drupal/modules/simpletest/tests/bootstrap.test
ViewVC logotype

Diff of /drupal/modules/simpletest/tests/bootstrap.test

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.25 by webchick, Sun Nov 15 21:41:06 2009 UTC revision 1.26 by dries, Sat Nov 21 14:35:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: bootstrap.test,v 1.24 2009/11/10 17:27:53 webchick Exp $  // $Id: bootstrap.test,v 1.25 2009/11/15 21:41:06 webchick Exp $
3    
4  class BootstrapIPAddressTestCase extends DrupalWebTestCase {  class BootstrapIPAddressTestCase extends DrupalWebTestCase {
5    
# Line 405  class BootstrapResettableStaticTestCase Line 405  class BootstrapResettableStaticTestCase
405      $var = 'bar';      $var = 'bar';
406      drupal_static_reset($name);      drupal_static_reset($name);
407      $this->assertEqual($var, 'foo', t('Variable was reset after second invocation of name-specific reset.'));      $this->assertEqual($var, 'foo', t('Variable was reset after second invocation of name-specific reset.'));
   
     // Ensure that batch processing doesn't get reset.  
     $batch = &batch_get();  
     $batch_saved = $batch;  
408      $var = 'bar';      $var = 'bar';
409      drupal_static_reset();      drupal_static_reset();
410      $this->assertEqual($var, 'foo', t('Variable was reset after first invocation of global reset.'));      $this->assertEqual($var, 'foo', t('Variable was reset after first invocation of global reset.'));
411      $var = 'bar';      $var = 'bar';
412      drupal_static_reset();      drupal_static_reset();
413      $this->assertEqual($var, 'foo', t('Variable was reset after second invocation of global reset.'));      $this->assertEqual($var, 'foo', t('Variable was reset after second invocation of global reset.'));
     $batch = $batch_saved;  
414    }    }
415  }  }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.3