src/Allow.php
public function toReceive()
    {
        if (!$this->_isClass) {
            throw new Exception("Error `toReceive()` are only available on classes/instances not functions.");
        }
        return $this->_method = $this->_stub->method(func_get_args());
    }
public function toReceive()
    {
        if (!$this->_isClass) {
            throw new Exception("Error `toReceive()` are only available on classes/instances not functions.");
        }
        return $this->_method = $this->_stub->method(func_get_args());
    }
public function toReceive ( ) { if ( ! $ this -> _isClass ) { throw new Exception ( "Error `toReceive()` are only available on classes/instances not functions." ) ; } return $ this -> _method = $ this -> _stub -> method ( func_get_args ( ) ) ; }
Stub a chain of methods.

@param  string $expected the method to be stubbed or a chain of methods.
@return        self.
Stub a chain of methods .