public static function isMocked($self, $static, $method)
{
if (self::$temp_disable) {
if (self::$debug) {
self::debug("Temporarily disabling mock check: {$self}::{$method} (static = {$static})");
}
self::$temp_disable = false;
return false;
}
if (isset(self::$mocks[$static][$method]) && self::staticContextIsOk($self, $static, $method)) {
return true;
}
// it is very hard to make "self" work incorrectly because "self" is just an alias for class name at compile time
return isset(self::$mocks[$self][$method]);
}