mirror of
https://github.com/crazywhalecc/choir-psr-http.git
synced 2026-03-17 20:24:52 +08:00
21 lines
350 B
PHP
21 lines
350 B
PHP
|
|
<?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());
|
||
|
|
}
|
||
|
|
}
|