Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.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 Mockable | |
3 { | |
4 public $constructorArgs; | |
5 public $cloned; | |
6 | |
7 public function __construct($arg1 = null, $arg2 = null) | |
8 { | |
9 $this->constructorArgs = array($arg1, $arg2); | |
10 } | |
11 | |
12 public function mockableMethod() | |
13 { | |
14 // something different from NULL | |
15 return true; | |
16 } | |
17 | |
18 public function anotherMockableMethod() | |
19 { | |
20 // something different from NULL | |
21 return true; | |
22 } | |
23 | |
24 public function __clone() | |
25 { | |
26 $this->cloned = true; | |
27 } | |
28 } |