private function wasCalledInOrder($name, $arguments)
{
$this->current = array_shift($this->scope);
if (!$this->current) {
return false;
}
$methodCallMatcher = new MethodCallMatcher($name, $arguments);
return $methodCallMatcher->matches($this->current);
}