GuzzleHttp\Psr7\MultipartStream::getBoundary PHP Method

getBoundary() public method

Get the boundary
public getBoundary ( ) : string
return string
    public function getBoundary()
    {
        return $this->boundary;
    }

Usage Example

Exemplo n.º 1
0
 public function testCanCreateEmptyStream()
 {
     $b = new MultipartStream();
     $boundary = $b->getBoundary();
     $this->assertSame("--{$boundary}--\r\n", $b->getContents());
     $this->assertSame(strlen($boundary) + 6, $b->getSize());
 }
All Usage Examples Of GuzzleHttp\Psr7\MultipartStream::getBoundary