renderException() публичный Метод

public renderException ( $message, Exception | Throwable $exception ) : string
$message
$exception Exception | Throwable
Результат string
Пример #1
0
 public function test_renderException_shouldReturnTheMessageAndNotTheExceptionMessage()
 {
     $response = $this->builder->renderException('This message should be ignored', new \BadMethodCallException('The other message'));
     $expected = array('result' => 'error', 'message' => 'This message should be ignored');
     $this->assertEquals($expected, $response);
 }