| 1 | <?php |
||
| 10 | class Response extends Message |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ResponseInterface |
||
| 14 | */ |
||
| 15 | protected $message; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param ResponseInterface $message |
||
| 21 | * @param AbstractAssert|null $previous |
||
| 22 | */ |
||
| 23 | public function __construct(ResponseInterface $message, Utils\AbstractAssert $previous = null) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Asserts the status code of the response. |
||
| 30 | * |
||
| 31 | * @param int $code |
||
| 32 | * @param string $message |
||
| 33 | * |
||
| 34 | * @return self |
||
| 35 | */ |
||
| 36 | public function statusCode($code, $message = '') |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Asserts the reason phrase. |
||
| 43 | * |
||
| 44 | * @param string $reasonPhrase |
||
| 45 | * @param string $message |
||
| 46 | * |
||
| 47 | * @return self |
||
| 48 | */ |
||
| 49 | public function reasonPhrase($reasonPhrase, $message = '') |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Creates an instance of Html to execute assertions with the html code. |
||
| 56 | * |
||
| 57 | * @return Html |
||
| 58 | */ |
||
| 59 | public function assertHtml() |
||
| 63 | } |
||
| 64 |