| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testFlushWithGC(array $data): void |
||
| 27 | { |
||
| 28 | $idGenerator = new DebuggerIdGenerator(); |
||
| 29 | $storage = $this->getStorage($idGenerator); |
||
| 30 | $storage->setHistorySize(5); |
||
| 31 | $collector = $this->createFakeCollector($data); |
||
| 32 | |||
| 33 | $storage->addCollector($collector); |
||
| 34 | $storage->flush(); |
||
| 35 | $this->assertLessThanOrEqual(5, count($storage->read())); |
||
| 36 | } |
||
| 62 |