Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.08 KB

File metadata and controls

48 lines (27 loc) · 1.08 KB
layout title
doc
HttpCode - Codeception - Documentation

Codeception\Util\HttpCode

Class containing constants of HTTP Status Codes and method to print HTTP code with its description.

Usage:

{% highlight php %}

seeResponseCodeIs(HttpCode::OK); $I->dontSeeResponseCodeIs(HttpCode::NOT_FOUND); {% endhighlight %} #### getDescription() *public static* getDescription($code) * `param int` $code * `return string|int` Returns string with HTTP code and its description {% highlight php %}  

Reference is taken from the source code. Help us to improve documentation. Edit module reference