Contains \Drupal\simpletest\Tests\PhpUnitAutoloaderTest.
<?php
/**
* @file
* Contains \Drupal\simpletest\Tests\PhpUnitAutoloaderTest.
*/
namespace Drupal\simpletest\Tests;
use Drupal\Tests\UnitTestCase;
/**
* Test PHPUnit autoloader works correctly.
*/
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 | Description |
---|---|
PhpUnitAutoloaderTest | Test PHPUnit autoloader works correctly. |