Skip to content

Commit

Permalink
Merge 2.x into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Nov 14, 2024
2 parents e1660d1 + 4cf7308 commit 91d6edc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use Rector\Config\RectorConfig;
use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\NarrowUnusedSetUpDefinedPropertyRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
Expand All @@ -40,5 +41,6 @@
$rectorConfig->skip([
ExceptionHandlerTypehintRector::class,
PreferPHPUnitThisCallRector::class,
NarrowUnusedSetUpDefinedPropertyRector::class,
]);
};
12 changes: 6 additions & 6 deletions tests/FlashMessage/FlashManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ public function testHandlingRegisteredTypes(): void
static::assertCount(2, $successMessages);

foreach ($successMessages as $message) {
static::assertSame($message, 'hey, success dude!');
static::assertSame('hey, success dude!', $message);
}

static::assertCount(2, $warningMessages);

foreach ($warningMessages as $message) {
static::assertSame($message, 'hey, warning dude!');
static::assertSame('hey, warning dude!', $message);
}

static::assertCount(2, $errorMessages);

foreach ($errorMessages as $message) {
static::assertSame($message, 'hey, error dude!');
static::assertSame('hey, error dude!', $message);
}
}

Expand All @@ -149,7 +149,7 @@ public function testHandlingNonRegisteredTypes(): void
static::assertCount(1, $nonRegisteredMessages);

foreach ($nonRegisteredMessages as $message) {
static::assertSame($message, 'hey, success dude!');
static::assertSame('hey, success dude!', $message);
}
}

Expand All @@ -170,11 +170,11 @@ public function testFlashMessageWithCustomDomain(): void
static::assertCount(1, $messagesWithoutDomain);

foreach ($messages as $message) {
static::assertSame($message, 'my_bundle_success_message');
static::assertSame('my_bundle_success_message', $message);
}

foreach ($messagesWithoutDomain as $message) {
static::assertSame($message, 'my_bundle_success_message');
static::assertSame('my_bundle_success_message', $message);
}
}

Expand Down

0 comments on commit 91d6edc

Please sign in to comment.