Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function register($key, $value)
 {
     $this->container->put($key, $value);
 }
Esempio n. 2
0
 /**
  * Define a new mock method.
  *
  * @param string $name The name of the method
  *
  * @return Method
  */
 public function method($name)
 {
     $method = new Method($name);
     $this->container->put($name, $method);
     return $method;
 }