You are here

RegistryAutoloadTestTest.php in Registry Autoload 7

Tests that PSR-4 namespaced classes and interfaces get registered correctly.

File

tests/modules/registry_autoload_test/src/Cache/RegistryAutoloadTestTest.php
View source
<?php

/**
 * @file
 * Tests that PSR-4 namespaced classes and interfaces get registered correctly.
 */
namespace Drupal\registry_autoload_test\Cache;

class RegistryAutoloadTestTest implements RegistryAutoloadTestTestInterface {

  /**
   * Constructs a RegistryAutoloadTestTest object.
   */
  public function __construct() {
    print "Hello Render_Cache\n";
    $this
      ->x();
  }

  /**
   * {@inheritdoc}
   */
  public function x() {
    print "Implements x\n";
  }

}

Classes