Skip to content

Commit 879b06c

Browse files
committed
Fixed tests
1 parent 373c9f1 commit 879b06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Psr6StoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function testWriteStoresTheResponseContent()
177177
$this->assertTrue($this->getCache()->hasItem($contentDigest), 'Response content is stored in cache.');
178178
$this->assertSame($response->getContent(), $this->getCache()->getItem($contentDigest)->get(), 'Response content is stored in cache.');
179179
$this->assertSame($contentDigest, $response->headers->get('X-Content-Digest'), 'Content digest is stored in the response header.');
180-
$this->assertSame(\strlen($response->getContent()), $response->headers->get('Content-Length'), 'Response content length is updated.');
180+
$this->assertSame(\strlen($response->getContent()), (int) $response->headers->get('Content-Length'), 'Response content length is updated.');
181181
}
182182

183183
public function testWriteDoesNotStoreTheResponseContentOfNonOriginalResponse()

0 commit comments

Comments
 (0)