Added httpCode to $lastError.
Added httpCode to getLastError() mock.
Added createEvent() mock.
Added support for createEvent() mock.