renderException() public method

public renderException ( $message, Exception | Throwable $exception ) : string
$message
$exception Exception | Throwable
return string
Example #1
0
 public function test_renderException_shouldThrowTheException()
 {
     $response = $this->builder->renderException('This message should be used', new \BadMethodCallException('The other message'));
     $this->assertEquals('Error: This message should be used', $response);
 }