You are here

class AuthcacheP13nTestCoreServiceStub in Authenticated User Page Caching (Authcache) 7.2

Stub class for core services.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestCoreServiceStub

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 195
Stub classes for testing.

View source
class AuthcacheP13nTestCoreServiceStub implements AuthcacheP13nCoreServiceInterface {
  protected $observer;

  /**
   * Construct new stub class.
   */
  public function __construct($observer) {
    $this->observer = $observer;
  }

  /**
   * {@inheritdoc}
   */
  public function drupalAddHttpHeader($name, $value, $append = FALSE) {
    return $this->observer
      ->record($this, __FUNCTION__, func_get_args());
  }

  /**
   * {@inheritdoc}
   */
  public function drupalBootstrap($phase = NULL, $new_phase = TRUE) {
    return $this->observer
      ->record($this, __FUNCTION__, func_get_args());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestCoreServiceStub::$observer protected property
AuthcacheP13nTestCoreServiceStub::drupalAddHttpHeader public function Sets an HTTP response header for the current page. Overrides AuthcacheP13nCoreServiceInterface::drupalAddHttpHeader
AuthcacheP13nTestCoreServiceStub::drupalBootstrap public function Ensures Drupal is bootstrapped to the specified phase. Overrides AuthcacheP13nCoreServiceInterface::drupalBootstrap
AuthcacheP13nTestCoreServiceStub::__construct public function Construct new stub class.