Test PHPUnit autoloader works correctly.
Expanded class hierarchy of PhpUnitAutoloaderTest
class PhpUnitAutoloaderTest extends UnitTestCase {
public static function getInfo() {
return array(
'name' => 'PHPUnit autoloader',
'description' => 'Test that classes are correctly loaded during PHPUnit initialization.',
'group' => 'Simpletest',
);
}
/**
* Test loading of classes provided by test sub modules.
*/
public function testPhpUnitTestClassesLoading() {
$this
->assertTrue(class_exists('\\Drupal\\phpunit_test\\PhpUnitTestDummyClass'), 'Class provided by test module was not autoloaded.');
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PhpUnitAutoloaderTest:: |
public static | function |
This method exists to support the simpletest UI runner. Overrides UnitTestCase:: |
|
PhpUnitAutoloaderTest:: |
public | function | Test loading of classes provided by test sub modules. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed in array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
public static | function | Generates a random string containing letters and numbers. |