<?php
namespace Mockery;
use Closure;
class HigherOrderMessage
{
private $method;
private $mock;
public function __construct(MockInterface $mock, $method)
{
$this->mock = $mock;
$this->method = $method;
}
public function __call($method, $args)
{
if ($this->method === 'shouldNotHaveReceived') {
return $this->mock->{$this->method}($method, $args);