mirror of
https://github.com/crazywhalecc/choir-psr-http.git
synced 2026-07-02 14:25:43 +08:00
initial commit
This commit is contained in:
20
tests/Choir/Http/RequestTest.php
Normal file
20
tests/Choir/Http/RequestTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user