You are here

public function MultipartStreamTest::testCanCreateEmptyStream in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/MultipartStreamTest.php \GuzzleHttp\Tests\MultipartStreamTest::testCanCreateEmptyStream()

File

vendor/guzzlehttp/psr7/tests/MultipartStreamTest.php, line 27

Class

MultipartStreamTest

Namespace

GuzzleHttp\Tests

Code

public function testCanCreateEmptyStream() {
  $b = new MultipartStream();
  $boundary = $b
    ->getBoundary();
  $this
    ->assertSame("--{$boundary}--\r\n", $b
    ->getContents());
  $this
    ->assertSame(strlen($boundary) + 6, $b
    ->getSize());
}