Skip to content

Commit

Permalink
Add checks
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Oct 13, 2023
1 parent 4b6b3bf commit 162d3bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Unit/Collector/ConsoleAppInfoCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,16 @@ protected function checkCollectedData(array $data): void
protected function checkSummaryData(array $data): void
{
parent::checkSummaryData($data);

$this->assertArrayHasKey('console', $data);
$this->assertArrayHasKey('php', $data['console']);
$this->assertArrayHasKey('version', $data['console']['php']);
$this->assertArrayHasKey('request', $data['console']);
$this->assertArrayHasKey('startTime', $data['console']['request']);
$this->assertArrayHasKey('processingTime', $data['console']['request']);
$this->assertArrayHasKey('memory', $data['console']);
$this->assertArrayHasKey('peakUsage', $data['console']['memory']);

$this->assertEquals(PHP_VERSION, $data['console']['php']['version']);
}
}

0 comments on commit 162d3bc

Please sign in to comment.