src/Jaschweder/Mock/Object.php
public function method($name)
    {
        $method = new Method($name);
        $this->container->put($name, $method);

        return $method;
    }
public function method($name)
    {
        $method = new Method($name);
        $this->container->put($name, $method);

        return $method;
    }
public function method ( $ name ) { $ method = new Method ( $ name ) ; $ this -> container -> put ( $ name , $ method ) ; return $ method ; }
Define a new mock method.

@param string $name The name of the method

@return Method
Define a new mock method .