This commit is contained in:
gaofeng
2026-06-17 09:23:18 +08:00
commit 81ade70944
1638 changed files with 213697 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace UnitTests\Fixtures;
use GuzzleHttp;
/**
* Stream decorator that prevents a stream from rewind.
*/
final class NoRewindStream implements \Psr\Http\Message\StreamInterface
{
use GuzzleHttp\Psr7\StreamDecoratorTrait;
/** @var \Psr\Http\Message\StreamInterface */
private $stream;
public function rewind(): void
{
throw new \RuntimeException('Cannot rewind a NoRewindStream');
}
}