Пример #1
0
 /**
  * @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());
 }
Пример #2
0
 public function testGetDescriptionWithUnknownErrorCodeWillReturnNull()
 {
     static::assertNull(ErrorCode::getDescription(3271863217367182));
 }