Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testCallback() { |
||
31 | $stream = fopen('data://text/plain,test_data', 'r'); |
||
32 | $this->expectOutputString('test_data'); |
||
33 | |||
34 | $ioutput = $this->getMockBuilder('OCP\AppFramework\Http\IOutput') |
||
35 | ->disableOriginalConstructor() |
||
36 | ->getMock(); |
||
37 | |||
38 | $streamResponse = new StreamResponse($stream); |
||
39 | $streamResponse->callback($ioutput); |
||
40 | } |
||
41 | } |