mocked_method.tpl.dist 861 B

12345678910111213141516171819202122
  1. {modifier} function {reference}{method_name}({arguments_decl}){return_delim}{return_type}
  2. {{deprecation}
  3. $__phpunit_arguments = [{arguments_call}];
  4. $__phpunit_count = func_num_args();
  5. if ($__phpunit_count > {arguments_count}) {
  6. $__phpunit_arguments_tmp = func_get_args();
  7. for ($__phpunit_i = {arguments_count}; $__phpunit_i < $__phpunit_count; $__phpunit_i++) {
  8. $__phpunit_arguments[] = $__phpunit_arguments_tmp[$__phpunit_i];
  9. }
  10. }
  11. $__phpunit_result = $this->__phpunit_getInvocationMocker()->invoke(
  12. new \PHPUnit\Framework\MockObject\Invocation\ObjectInvocation(
  13. '{class_name}', '{method_name}', $__phpunit_arguments, '{return_type}', $this, {clone_arguments}
  14. )
  15. );
  16. return $__phpunit_result;
  17. }