OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
guzzlehttp
/
psr7
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
AppendStreamTest.php
6.91 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
BufferStreamTest.php
1.98 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
CachingStreamTest.php
6.62 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
DroppingStreamTest.php
964 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
FnStreamTest.php
3.75 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
HasToString.php
177 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
HeaderTest.php
6.14 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
InflateStreamTest.php
3.06 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
Integration
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
LazyOpenStreamTest.php
1.88 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
LimitStreamTest.php
4.94 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
MessageTest.php
12.73 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
MimeTypeTest.php
617 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
MultipartStreamTest.php
9.67 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
NoSeekStreamTest.php
1.05 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
PumpStreamTest.php
3.13 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
QueryTest.php
4.1 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
ReadSeekOnlyStream.php
460 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
RequestTest.php
10.78 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
ResponseTest.php
13.89 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
ServerRequestTest.php
20.07 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
StreamDecoratorTraitTest.php
3.81 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
StreamTest.php
12.89 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
StreamWrapperTest.php
5.52 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UploadedFileTest.php
6.63 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UriComparatorTest.php
1.81 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UriNormalizerTest.php
7.06 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UriResolverTest.php
10.89 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UriTest.php
27.18 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
UtilsTest.php
18.04 KB
05/19/2025 10:07:22 AM
rw-r--r--
Editing: DroppingStreamTest.php
Close
<?php declare(strict_types=1); namespace GuzzleHttp\Tests\Psr7; use GuzzleHttp\Psr7\BufferStream; use GuzzleHttp\Psr7\DroppingStream; use PHPUnit\Framework\TestCase; class DroppingStreamTest extends TestCase { public function testBeginsDroppingWhenSizeExceeded(): void { $stream = new BufferStream(); $drop = new DroppingStream($stream, 5); self::assertSame(3, $drop->write('hel')); self::assertSame(2, $drop->write('lo')); self::assertSame(5, $drop->getSize()); self::assertSame('hello', $drop->read(5)); self::assertSame(0, $drop->getSize()); $drop->write('12345678910'); self::assertSame(5, $stream->getSize()); self::assertSame(5, $drop->getSize()); self::assertSame('12345', (string) $drop); self::assertSame(0, $drop->getSize()); $drop->write('hello'); self::assertSame(0, $drop->write('test')); } }