Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function setUp() |
||
17 | { |
||
18 | parent::setUp(); |
||
19 | |||
20 | $this->writer = new StreamWriter('test', 'echo'); |
||
21 | |||
22 | $this->writer->write(''); |
||
23 | |||
24 | // get the socket |
||
25 | $reflector = new ReflectionProperty(StreamWriter::class, 'socket'); |
||
26 | $reflector->setAccessible(true); |
||
27 | /** @var resource $socket */ |
||
28 | $this->socket = $reflector->getValue($this->writer); |
||
29 | } |
||
30 | |||
64 |