@@ -217,7 +217,6 @@ public function testEmitStreamResponse(bool $seekable, bool $readable, string $c
217
217
strlen ($ contents ),
218
218
$ startPosition ,
219
219
static function (int $ bufferLength ) use (&$ peakBufferLength ): void {
220
- self ::assertIsInt ($ peakBufferLength );
221
220
if ($ bufferLength > $ peakBufferLength ) {
222
221
$ peakBufferLength = $ bufferLength ;
223
222
}
@@ -363,7 +362,6 @@ public function testEmitRangeStreamResponse(
363
362
$ peakBufferLength = 0 ;
364
363
365
364
$ trackPeakBufferLength = static function (int $ bufferLength ) use (&$ peakBufferLength ): void {
366
- self ::assertIsInt ($ peakBufferLength );
367
365
if ($ bufferLength > $ peakBufferLength ) {
368
366
$ peakBufferLength = $ bufferLength ;
369
367
}
@@ -509,7 +507,7 @@ public function testEmitMemoryUsage(
509
507
}
510
508
511
509
$ closureTrackMemoryUsage = static function () use (&$ peakMemoryUsage ): void {
512
- $ peakMemoryUsage = ( int ) max ($ peakMemoryUsage , memory_get_usage ());
510
+ $ peakMemoryUsage = max ($ peakMemoryUsage , memory_get_usage ());
513
511
};
514
512
515
513
$ contentsCallback = static function (int $ position , ?int $ length = null ) use (&$ sizeBytes ): string {
@@ -569,7 +567,6 @@ public function testEmitMemoryUsage(
569
567
570
568
ob_start (
571
569
static function () use (&$ closureTrackMemoryUsage ): string {
572
- self ::assertIsCallable ($ closureTrackMemoryUsage );
573
570
$ closureTrackMemoryUsage ();
574
571
return '' ;
575
572
},
@@ -592,7 +589,6 @@ static function () use (&$closureTrackMemoryUsage): string {
592
589
$ localMemoryUsage = memory_get_usage ();
593
590
594
591
self ::assertLessThanOrEqual ($ maxBufferLength , $ peakBufferLength );
595
- self ::assertIsInt ($ peakMemoryUsage );
596
592
self ::assertLessThanOrEqual ($ maxAllowedMemoryUsage , $ peakMemoryUsage - $ localMemoryUsage );
597
593
}
598
594
0 commit comments