~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/proxied_method.tpl.dist

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
    {modifier} function {reference}{method_name}({arguments_decl})
 
3
    {
 
4
        $arguments = array({arguments_call});
 
5
        $count     = func_num_args();
 
6
 
 
7
        if ($count > {arguments_count}) {
 
8
            $_arguments = func_get_args();
 
9
 
 
10
            for ($i = {arguments_count}; $i < $count; $i++) {
 
11
                $arguments[] = $_arguments[$i];
 
12
            }
 
13
        }
 
14
 
 
15
        $this->__phpunit_getInvocationMocker()->invoke(
 
16
          new PHPUnit_Framework_MockObject_Invocation_Object(
 
17
            '{class_name}', '{method_name}', $arguments, $this, {clone_arguments}
 
18
          )
 
19
        );
 
20
 
 
21
        return call_user_func_array(array($this->__phpunit_originalObject, "{method_name}"), $arguments);
 
22
    }