choir-psr-http/tests/Choir/Http/RequestTest.php

21 lines
350 B
PHP
Raw Permalink Normal View History

2022-12-26 19:10:28 +08:00
<?php
declare(strict_types=1);
namespace Tests\Choir\Http;
use Choir\Http\Request;
use PHPUnit\Framework\TestCase;
/**
* @internal
*/
class RequestTest extends TestCase
{
public function testConstruct()
{
$req = new Request('GET', '/', [], 'nihao');
$this->assertEquals('nihao', $req->getBody()->getContents());
}
}