1<?php
2class Mockable
3{
4    public $constructorArgs;
5    public $cloned;
6
7    public function __construct($arg1 = null, $arg2 = null)
8    {
9        $this->constructorArgs = [$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}
29