1 2 public function method() 3 { 4 $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount; 5 $expects = $this->expects($any); 6 return call_user_func_array(array($expects, 'method'), func_get_args()); 7 } 8