Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BufferedOutputTest extends TestCase |
||
12 | { |
||
13 | public function testFetch() : void |
||
19 | } |
||
20 | |||
21 | public function testFetchWithMultipleWrites() : void |
||
22 | { |
||
23 | $output = new BufferedOutput; |
||
24 | $output->write('one'); |
||
25 | $output->write('two'); |
||
26 | |||
27 | static::assertEquals('onetwo', $output->fetch()); |
||
28 | } |
||
29 | |||
30 | public function testFetchCleansBufferByDefault() : void |
||
31 | { |
||
32 | $output = new BufferedOutput; |
||
33 | $output->write('one'); |
||
34 | |||
35 | static::assertEquals('one', $output->fetch()); |
||
36 | static::assertEquals('', $output->fetch()); |
||
37 | } |
||
38 | |||
39 | public function testFetchWithoutCleaning() : void |
||
49 | } |
||
50 | |||
51 | public function testToString() : void |
||
59 |