class CustomTest in Autoload 7
Same name and namespace in other branches
- 7.2 src/Tests/Unit/CustomTest.php \Drupal\autoload\Tests\Unit\CustomTest
Class CustomTest.
Hierarchy
- class \Drupal\autoload\Tests\Unit\AuxiliaryTest extends \Drupal\autoload\Tests\Unit\DrupalWebTestCase
- class \Drupal\autoload\Tests\Unit\CustomTest
Expanded class hierarchy of CustomTest
File
- src/
Tests/ Unit/ CustomTest.php, line 8
Namespace
Drupal\autoload\Tests\UnitView source
class CustomTest extends AuxiliaryTest {
/**
* {@inheritdoc}
*/
protected static $modules = array(
'autoload_test_custom',
);
/**
* {@inheritdoc}
*/
public static function getInfo() {
$info = parent::getInfo();
$info['name'] = 'Custom';
$info['description'] = t('Testing functionality of autoload custom namespaces.');
return $info;
}
/**
* {@inheritdoc}
*/
public function test() {
// If something will not work we'll get fatal error :)
new \Autoload\Tests\PSR0();
new \Autoload\Tests\PSR4();
new \AutoloadTests\PSR4();
new \Autoload\Tests\Example\Test();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuxiliaryTest:: |
protected | function | Assert sought classes. | |
AuxiliaryTest:: |
protected | function | Assert registered extensions for autoloading. | |
AuxiliaryTest:: |
protected | function | ||
CustomTest:: |
protected static | property |
Modules which should enabled for testing. Overrides AuxiliaryTest:: |
|
CustomTest:: |
public static | function |
Overrides AuxiliaryTest:: |
|
CustomTest:: |
public | function |
Unit tests for auxiliary functions. Overrides AuxiliaryTest:: |