You are here

public function RequestTest::testCanConstructWithBody in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/tests/RequestTest.php \GuzzleHttp\Tests\Psr7\RequestTest::testCanConstructWithBody()

File

vendor/guzzlehttp/psr7/tests/RequestTest.php, line 33

Class

RequestTest
@covers GuzzleHttp\Psr7\Request

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testCanConstructWithBody() {
  $r = new Request('GET', '/', [], 'baz');
  $this
    ->assertEquals('baz', (string) $r
    ->getBody());
}