Exemple #1
0
 protected function _actualCalls()
 {
     if (empty($this->mock->_called_methods)) {
         return "no interactions";
     }
     return MethodCall::arrayToString($this->mock->_called_methods);
 }
 public static function verify($mock)
 {
     if (!empty($mock->_called_methods)) {
         AssertAdapter::fail("Expected zero interactions but got " . MethodCall::arrayToString($mock->_called_methods));
     }
 }