| 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 |
|
|
| 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 |
} |
} |