I am using PHPUnit to make a mock class for testing.\[code\]class Item extends Object { protected static $_cache;}\[/code\]I am pretty certain mocking does something like this ( please correct me if I'm wrong ):\[code\]class Mock_Item_randomstring extends Item {}\[/code\]When my \[code\]Item\[/code\]'s cache gets populated, it's checking to see that the object being passed in is an instance of \[code\]Item\[/code\]. Since the mock is not explicitly defining \[code\]$_cache\[/code\], it fails the check for instance type.PHP doesn't really document the reflection functions well at all. Is there a way to set the static variable after the fact so the class would become\[code\]class Mock_Item_randomstring extends Item { protected static $_cache;}\[/code\]