registry_autoload_test.module in Registry Autoload 7
Contains tests to manually test registry_autoload module functionality.
File
tests/modules/registry_autoload_test/registry_autoload_test.moduleView source
<?php
/**
* @file
* Contains tests to manually test registry_autoload module functionality.
*/
/**
* Test function to test class loading.
*/
function registry_autoload_test_class_loading() {
$x = new \Drupal\Core\Cache\RegistryAutoloadTestTest();
$x = new \Drupal\registry_autoload_test\Cache\RegistryAutoloadTestTest();
$x = new \RegistryAutoloadTestTest();
$x = new \custom\some\name\space\RegistryAutoloadTestTest();
$x = new \SomeVendor\SomeComponent\RegistryAutoloadTestTest();
$x = new \SomeOtherVendor\SomeComponent\RegistryAutoloadTestTest();
$supports_traits = !version_compare(PHP_VERSION, '5.4', '<');
if ($supports_traits) {
$x = new \Drupal\registry_autoload_test\Cache\RegistryAutoloadTraitTest();
}
unset($x);
}
Functions
Name | Description |
---|---|
registry_autoload_test_class_loading | Test function to test class loading. |