Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update SimpleStreamResponseSenderTest.php
Browse files Browse the repository at this point in the history
force binary mode
  • Loading branch information
prolic committed Jun 29, 2013
1 parent e238857 commit baf7630
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testSendResponseIgnoresInvalidResponseTypes()

public function testSendResponseTwoTimesPrintsResponseOnlyOnce()
{
$file = fopen(__DIR__ . '/TestAsset/sample-stream-file.txt', 'r');
$file = fopen(__DIR__ . '/TestAsset/sample-stream-file.txt', 'rb');
$mockResponse = $this->getMock('Zend\Http\Response\Stream');
$mockResponse->expects($this->once())->method('getStream')->will($this->returnValue($file));
$mockSendResponseEvent = $this->getSendResponseEventMock($mockResponse);
Expand Down

0 comments on commit baf7630

Please sign in to comment.