PhpUnitAutoloaderTest.php

Contains \Drupal\simpletest\Tests\PhpUnitAutoloaderTest.

Namespace

Drupal\simpletest\Tests

File

drupal/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
View source
<?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.');
  }

}

Classes

Namesort descending Description
PhpUnitAutoloaderTest Test PHPUnit autoloader works correctly.