public function returnStringFromEncoder(Yay_Invocation $invocation)
 {
     $args = $invocation->getArguments();
     return array_shift($args);
 }
 public function &invoke(Yay_Invocation $inv)
 {
     $args = $inv->getArguments();
     $this->content .= current($args);
 }
 /**
  * Record any Invocations on the MockObject whilst it's in record mode.
  * @param Yay_Invocation $invocation
  */
 public function recordInvocation(Yay_Invocation $invocation)
 {
     $this->_method = $invocation->getMethod();
     $matchers =& $invocation->getArguments();
     foreach ($matchers as $matcher) {
         if ($matcher instanceof Yay_Matcher) {
             $this->_matchers[] = $matcher;
         } else {
             $this->_matchers[] = new Yay_Matchers_IdenticalMatcher($matcher);
         }
     }
 }
 public function cbStopCommand(Yay_Invocation $invocation)
 {
     $args =& $invocation->getArguments();
     $stop =& $args[4];
     $stop = true;
     return "250 ok";
 }
 public function _cancelBubble(Yay_Invocation $inv)
 {
     $args = $inv->getArguments();
     $args[0]->cancelBubble(true);
 }