You are here

public function AuthcacheP13nTestStubObserver::method in Authenticated User Page Caching (Authcache) 7.2

Setup invocation verifier and return-value for a method.

Return value

AuthcacheP13nTestStubVerifyer New invocation verifier instance.

File

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

Class

AuthcacheP13nTestStubObserver
Simple invocation recorder class.

Code

public function method($object, $method, $return = NULL) {
  $name = $this
    ->boundMethodName($object, $method);
  $this->returns[$name] = $return;
  $this->invocations[$name] = array();
  return new AuthcacheP13nTestStubVerifyer($name, $this);
}