Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testCollect(): void |
||
14 | { |
||
15 | $summaryData = null; |
||
16 | $collector = $this->getCollector(); |
||
17 | |||
18 | $collector->startup(); |
||
19 | $this->collectTestData($collector); |
||
20 | $data = $collector->getCollected(); |
||
21 | if ($collector instanceof SummaryCollectorInterface) { |
||
22 | $summaryData = $collector->getSummary(); |
||
23 | } |
||
24 | $collector->shutdown(); |
||
25 | |||
26 | $this->assertSame($collector::class, $collector->getName()); |
||
27 | $this->checkCollectedData($data); |
||
28 | if ($collector instanceof SummaryCollectorInterface) { |
||
29 | $this->checkSummaryData($summaryData); |
||
|
|||
30 | } |
||
47 |