/** * @return string */ public function __toString() { return sprintf("Response: %d: %s - %d: %s\n%s\n%s\n%s", $this->getStatusCode(), $this->getStatusReason(), $this->getErrorCode(), ErrorCode::getName($this->getErrorCode()), ErrorCode::getDescription($this->getErrorCode()), $this->getErrorMessage(), $this->getErrorDetails()); }
public function testGetDescriptionWithUnknownErrorCodeWillReturnNull() { static::assertNull(ErrorCode::getDescription(3271863217367182)); }