Mockable.php (505B)
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 }