Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
#223 #224 removed string interpolation, unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 17, 2017
1 parent 03249b4 commit 52e8cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Response/SapiStreamEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function testEmitMemoryUsage($seekable, $maxBufferLength, $sizeBlocks, $m


if ($rangeBlocks) {
$response = $response->withHeader('Content-Range', "bytes $first-$last/*");
$response = $response->withHeader('Content-Range', 'bytes ' . $first . '-' . $last . '/*');
}

ob_start(function ($output) use (&$closureTrackMemoryUsage) {
Expand All @@ -204,7 +204,7 @@ public function testEmitMemoryUsage($seekable, $maxBufferLength, $sizeBlocks, $m
$localMemoryUsage = memory_get_usage();

$this->assertLessThanOrEqual($maxBufferLength, $peakBufferLength);
$this->assertLessThanOrEqual($maxAllowedMemoryUsage, ($peakMemoryUsage - $localMemoryUsage));
$this->assertLessThanOrEqual($maxAllowedMemoryUsage, $peakMemoryUsage - $localMemoryUsage);
}

public function emitBodyRangeProvider()
Expand Down

0 comments on commit 52e8cab

Please sign in to comment.