Skip to content

Commit

Permalink
Added support for Symfony 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nightio authored and Robert committed Jul 16, 2024
1 parent 4fd2bf0 commit 4346943
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
],
"require": {
"php": ">=7.4",
"symfony/dependency-injection": "^4.4|^5.0|^6.0"
"symfony/dependency-injection": "^4.4|^5.0|^6.0|^7.0"
},
"require-dev": {
"symfony/framework-bundle": "^4.4|^5.0|^6.0",
"symfony/phpunit-bridge": "^4.4|^5.0|^6.0",
"symfony/browser-kit": "^4.4|^5.0|^6.0",
"symfony/yaml": "^4.4|^5.0|^6.0"
"symfony/framework-bundle": "^4.4|^5.0|^6.0|^7.0",
"symfony/phpunit-bridge": "^4.4|^5.0|^6.0|^7.0",
"symfony/browser-kit": "^4.4|^5.0|^6.0|^7.0",
"symfony/yaml": "^4.4|^5.0|^6.0|^7.0"
},
"autoload": {
"psr-4": { "PrismaMedia\\Metrics\\": "src/" }
Expand Down
2 changes: 1 addition & 1 deletion tests/MetricAggregatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public function getMetrics(): iterable
$metrics = $aggregator->getMetrics();

$this->assertInstanceOf(\Generator::class, $metrics);
$this->assertCount(3, $metrics);
$this->assertEquals(3, iterator_count($metrics));
}
}
2 changes: 1 addition & 1 deletion tests/MetricLabellerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getMetrics(): \Traversable
$labeller = new MetricLabeller($metrics, ['env' => 'staging']);

$this->assertInstanceOf(\Generator::class, $labeller->getMetrics());
$this->assertCount(3, $labeller->getMetrics());
$this->assertEquals(3, iterator_count($labeller->getMetrics()));
$metrics = iterator_to_array($labeller->getMetrics());

$this->assertSame('article_total', $metrics[0]->getName());
Expand Down

0 comments on commit 4346943

Please sign in to comment.