You are here

DrupalTest.php in Autoload 7.2

Same filename and directory in other branches
  1. 7 src/Tests/Unit/DrupalTest.php

File

src/Tests/Unit/DrupalTest.php
View source
<?php

namespace Drupal\autoload\Tests\Unit;


/**
 * Class DrupalTest.
 */
class DrupalTest extends AutoloadTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = array(
    'autoload_test_drupal',
  );

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return static::info(t('Testing functionality of autoloading the Drupal-way namespaces.'));
  }

  /**
   * {@inheritdoc}
   */
  public function test() {

    // If something will not work we'll get fatal error :)
    new \Drupal\autoload_test_drupal\PSR0();
    new \Drupal\autoload_test_drupal\PSR4();
  }

}

Classes

Namesort descending Description
DrupalTest Class DrupalTest.