Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 1.03 KB

File metadata and controls

49 lines (27 loc) · 1.03 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 *static* 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