public renderException ( $message, Exception | Throwable $exception ) : string | ||
$message | ||
$exception | Exception | Throwable | |
Результат | string |
public function test_renderException_shouldIncludeTheMessageAndNotExceptionMessage() { $response = $this->builder->renderException("The error message", new \Exception('The other message')); $this->assertEquals('<?xml version="1.0" encoding="utf-8" ?> <result> <error message="The error message" /> </result>', $response); }