Files
BiFace_Server_Lite/vendor/codeception/base/tests/unit/Codeception/Util/HttpCodeTest.php
2020-03-27 10:13:51 +07:00

19 lines
552 B
PHP

<?php
namespace Codeception\Util;
class HttpCodeTest extends \Codeception\Test\Unit
{
public function testHttpCodeConstants()
{
$this->assertEquals(200, HttpCode::OK);
$this->assertEquals(404, HttpCode::NOT_FOUND);
}
public function testHttpCodeWithDescription()
{
$this->assertEquals('200 (OK)', HttpCode::getDescription(200));
$this->assertEquals('301 (Moved Permanently)', HttpCode::getDescription(301));
$this->assertEquals('401 (Unauthorized)', HttpCode::getDescription(401));
}
}