Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testSummaryCount() |
||
19 | { |
||
20 | $idGenerator = new DebuggerIdGenerator(); |
||
21 | $storage = $this->getStorage($idGenerator); |
||
22 | |||
23 | $storage->addCollector($collector1 = $this->createFakeSummaryCollector(['test' => 'test'])); |
||
24 | $storage->addCollector($collector2 = $this->createFakeCollector(['test' => 'test'])); |
||
25 | |||
26 | $result = $storage->read(StorageInterface::TYPE_SUMMARY, null); |
||
27 | $this->assertCount(1, $result); |
||
28 | |||
29 | $this->assertEquals( |
||
30 | [ |
||
31 | $idGenerator->getId() => [ |
||
32 | 'id' => $idGenerator->getId(), |
||
33 | 'collectors' => [$collector1->getName(), $collector2->getName()], |
||
34 | ], |
||
35 | ], |
||
36 | $result |
||
37 | ); |
||
40 |