public static function restoreMethod($class, $method)
{
if (self::$debug) {
self::debug("Restore method {$class}::{$method}");
}
if (isset(self::$mocks[$class][$method]['decl_class'])) {
if (self::$debug) {
self::debug("Restore also method {$class}::{$method}");
}
unset(self::$mocks[self::$mocks[$class][$method]['decl_class']][$method]);
}
unset(self::$mocks[$class][$method]);
}