Patchwork is a PHP library that makes it possible to redefine user-defined functions and methods
at runtime, replicating the functionality of runkit_function_redefine in pure PHP 5.3 code. It allows you to, among other things, replace static and private methods with test doubles.