Skip to content

Commit

Permalink
[bug] profiler is only required in Symfony 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Sep 30, 2021
1 parent 660d812 commit 8264478
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/InteractsWithMailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ public function mailer_must_be_enabled(): void
/**
* @test
*/
public function profiler_must_be_enabled_after_5_2(): void
public function profiler_must_be_enabled_in_symfony_5_2(): void
{
if (Kernel::VERSION_ID < 50200) {
// profile needs to be enabled in 5.2+
if ('52' !== Kernel::MAJOR_VERSION.Kernel::MINOR_VERSION) {
// profile needs to be enabled in 5.2 only
$this->markTestSkipped();
}

Expand All @@ -191,10 +191,10 @@ public function profiler_must_be_enabled_after_5_2(): void
/**
* @test
*/
public function profiler_does_not_need_to_enabled_prior_to_5_2(): void
public function profiler_does_not_need_to_enabled(): void
{
if (Kernel::VERSION_ID >= 50200) {
// profile does not need to be enabled in <5.2
if ('52' === Kernel::MAJOR_VERSION.Kernel::MINOR_VERSION) {
// profile does not need to be enabled in versions other than 52
$this->markTestSkipped();
}

Expand Down

0 comments on commit 8264478

Please sign in to comment.