/** * {@inheritdoc} */ public function register($key, $value) { $this->container->put($key, $value); }
/** * 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; }