Skip to content

Commit

Permalink
IBX-8121: Fixed code style for 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p authored May 7, 2024
1 parent 6ea684d commit cbdaa07
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"symfony/yaml": "^5.4"
},
"require-dev": {
"ibexa/code-style": "^1.1",
"ibexa/code-style": "~2.0.0",
"ibexa/doctrine-schema": "~5.0.x-dev",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Mapper/NotificationMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testMapToSymfonyNotification(): void
new SymfonyNotificationAdapter($notification)
);

$this->assertSame($notification, $symfonyNotification);
self::assertSame($notification, $symfonyNotification);
}

public function testMapToSymfonyNotificationThrowsExceptionOnInvalidNotification(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Mapper/RecipientMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testMapToSymfonyRecipient(): void
new SymfonyRecipientAdapter($recipient)
);

$this->assertSame($recipient, $symfonyRecipient);
self::assertSame($recipient, $symfonyRecipient);
}

public function testMapToSymfonyRecipientThrowsExceptionOnInvalidRecipient(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testResolve(array $resolvers, array $expectedChannels): void
$notification = $this->createMock(NotificationInterface::class);
$channels = $subscriptionResolver->resolve($notification);

$this->assertSame($expectedChannels, iterator_to_array($channels));
self::assertSame($expectedChannels, iterator_to_array($channels));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public function testResolve(
$subscriptions = $this->resolver->resolve($notification);
$subscriptionsArray = iterator_to_array($subscriptions);

$this->assertCount(count($expectedChannels), $subscriptionsArray);
$this->assertContainsOnlyInstancesOf(ChannelSubscription::class, $subscriptionsArray);
self::assertCount(count($expectedChannels), $subscriptionsArray);
self::assertContainsOnlyInstancesOf(ChannelSubscription::class, $subscriptionsArray);

$i = 0;
foreach ($subscriptionsArray as $channelSubscription) {
$this->assertSame($notificationType, $channelSubscription->getNotificationType());
$this->assertSame($expectedChannels[$i++], $channelSubscription->getChannel());
self::assertSame($notificationType, $channelSubscription->getNotificationType());
self::assertSame($expectedChannels[$i++], $channelSubscription->getChannel());
}
}

Expand Down

0 comments on commit cbdaa07

Please sign in to comment.