public function __call($name, $arguments) { parent::__call($name, $arguments); $this->description .= '->'; $this->description .= MethodCall::newInstance($name, $arguments)->toString(); return $this; }
public function __call($name, $arguments) { if ($this->wasCalledInOrder($name, $arguments)) { return $this; } $expected = MethodCall::newInstance($name, $arguments)->toString(); $actual = $this->actualCalls(); $this->fail('Method was not called in order', $expected, $actual); }
public function __call($name, $arguments) { if ($this->_wasCalled($name, $arguments)) { return $this; } $calls = $this->_actualCalls(); $expected = MethodCall::newInstance($name, $arguments)->__toString(); $this->_fail("Expected method was not called", $expected, $calls); }