protected function XAutoloadWebTestCase::xautoloadCheckTestEnvironment in X Autoload 7.5
Same name and namespace in other branches
- 7.3 lib/Drupal/xautoload/Tests/XAutoloadWebTestCase.php \Drupal\xautoload\Tests\XAutoloadWebTestCase::xautoloadCheckTestEnvironment()
- 7.4 lib/Drupal/xautoload/Tests/XAutoloadWebTestCase.php \Drupal\xautoload\Tests\XAutoloadWebTestCase::xautoloadCheckTestEnvironment()
Parameters
array $observations:
array $cache_types: The autoloader modes that are enabled, e.g. array('apc' => 'apc', 'xcache' => 'xcache')
bool $lazy: Whether the "lazy" mode is enabled.
$when:
1 call to XAutoloadWebTestCase::xautoloadCheckTestEnvironment()
- XAutoloadWebTestCase::xautoloadModuleCheckJson in lib/
Drupal/ xautoload/ Tests/ XAutoloadWebTestCase.php
File
- lib/
Drupal/ xautoload/ Tests/ XAutoloadWebTestCase.php, line 167
Class
Namespace
Drupal\xautoload\TestsCode
protected function xautoloadCheckTestEnvironment($observations, $cache_types, $lazy, $when) {
// Check early-bootstrap variables.
$label = "{$when}: xautoload_cache_types:";
$this
->assertEqualBlock($cache_types, $observations[XAUTOLOAD_VARNAME_CACHE_TYPES], $label);
$label = "{$when}: xautoload_cache_lazy:";
$this
->assertEqualInline($lazy, $observations[XAUTOLOAD_VARNAME_CACHE_LAZY], $label);
// Check registered class loaders.
$expected = $this
->expectedAutoloadStackOrder($cache_types);
$actual = $observations['spl_autoload_functions'];
$label = "{$when}: spl autoload stack:";
$this
->assertEqualBlock($expected, $actual, $label);
}