Exemple #1
0
 protected function _actualCalls()
 {
     if (empty($this->mock->_called_methods)) {
         return "no interactions";
     }
     return MethodCall::arrayToString($this->mock->_called_methods);
 }
 public function __call($name, $arguments)
 {
     parent::__call($name, $arguments);
     $this->description .= '->';
     $this->description .= MethodCall::newInstance($name, $arguments)->toString();
     return $this;
 }
 /**
  * @return string
  */
 private function actualCalls()
 {
     return $this->current ? $this->current->toString() : 'no interactions';
 }
 public static function verify($mock)
 {
     if (!empty($mock->_called_methods)) {
         AssertAdapter::fail("Expected zero interactions but got " . MethodCall::arrayToString($mock->_called_methods));
     }
 }