public function __construct($value)
{
$this->value = $value;
if (is_object($value)) {
$message = sprintf('Object of type %s is not a mock.', var_export(get_class($value), true));
} else {
$message = sprintf('Value of type %s is not a mock.', var_export(gettype($value), true));
}
parent::__construct($message);
}