Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function testIterator(): void |
||
42 | { |
||
43 | $data = new Simplified\SessionAdapter(); |
||
44 | |||
45 | $this->assertEmpty(iterator_to_array($data->getIterator())); |
||
46 | $data->foz = 'wuz'; |
||
47 | $this->assertNotEmpty(iterator_to_array($data->getIterator())); |
||
48 | unset($data->foz); |
||
49 | $this->assertEmpty(iterator_to_array($data->getIterator())); |
||
50 | } |
||
52 |