for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Tests\Http\SapiEmitter\Support;
use Psr\Http\Message\StreamInterface;
/**
* @source https://github.com/yiisoft/yii-web/blob/master/tests/Emitter/Support/NotReadableStream.php
* @license MIT
* @copyright Yii Software LLC (http://www.yiisoft.com) All rights reserved.
*/
class NotReadableStream implements StreamInterface
{
public function __toString(): string
throw new \RuntimeException();
}
public function close(): void
public function detach()
return null;
public function getSize(): ?int
public function tell(): int
public function eof(): bool
return false;
public function isSeekable(): bool
public function seek($offset, $whence = SEEK_SET): void
public function rewind(): void
public function isWritable(): bool
public function write($string): int
public function isReadable(): bool
public function read($length): string
public function getContents(): string
public function getMetadata($key = null)