Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallback.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 class MethodCallback | |
3 { | |
4 public static function staticCallback() | |
5 { | |
6 $args = func_get_args(); | |
7 | |
8 if ($args == array('foo', 'bar')) { | |
9 return 'pass'; | |
10 } | |
11 } | |
12 | |
13 public function nonStaticCallback() | |
14 { | |
15 $args = func_get_args(); | |
16 | |
17 if ($args == array('foo', 'bar')) { | |
18 return 'pass'; | |
19 } | |
20 } | |
21 } |