Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"require-dev": {
"ibexa/code-style": "~2.0.0",
"ibexa/doctrine-schema": "~6.0.x-dev",
"ibexa/phpstan": "~6.0.x-dev",
"ibexa/rector": "~6.0.x-dev",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/ibexa/phpstan/extension.neon
- phpstan-baseline.neon

parameters:
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/Channel/SystemNotificationChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class SystemNotificationChannelTest extends TestCase

protected function setUp(): void
{
$this->repository = $this->createStub(Repository::class);
$this->repository = self::createStub(Repository::class);
$this->notificationService = $this->createMock(NotificationService::class);

$this->channel = new SystemNotificationChannel($this->repository, $this->notificationService);
Expand All @@ -47,10 +47,10 @@ public function testSupports(bool $supportedNotification, bool $supportedRecipie
{
$notification = $supportedNotification
? $this->createSupportedNotification()
: $this->createStub(Notification::class);
: self::createStub(Notification::class);
$recipient = $supportedRecipient
? $this->createSupportedRecipient()
: $this->createStub(RecipientInterface::class);
: self::createStub(RecipientInterface::class);

self::assertEquals($expectedResult, $this->channel->supports($notification, $recipient));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Mapper/NotificationMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function setUp(): void

public function testMapToSymfonyNotificationForSymfonyAdapter(): void
{
$notification = $this->createStub(Notification::class);
$notification = self::createStub(Notification::class);

$symfonyNotification = $this->mapper->mapToSymfonyNotification(
new SymfonyNotificationAdapter($notification)
Expand All @@ -49,7 +49,7 @@ public function testMapToSymfonyNotificationThrowsExceptionOnInvalidNotification
$this->expectException(InvalidArgumentException::class);

$this->mapper->mapToSymfonyNotification(
$this->createStub(NotificationInterface::class)
self::createStub(NotificationInterface::class)
);
}
}
4 changes: 2 additions & 2 deletions tests/lib/Mapper/RecipientMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function setUp(): void

public function testMapToSymfonyRecipient(): void
{
$recipient = $this->createStub(Recipient::class);
$recipient = self::createStub(Recipient::class);

$symfonyRecipient = $this->mapper->mapToSymfonyRecipient(
new SymfonyRecipientAdapter($recipient)
Expand All @@ -40,7 +40,7 @@ public function testMapToSymfonyRecipientThrowsExceptionOnInvalidRecipient(): vo
$this->expectException(InvalidArgumentException::class);

$this->mapper->mapToSymfonyRecipient(
$this->createStub(RecipientInterface::class)
self::createStub(RecipientInterface::class)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testResolve(array $resolverChannels, array $expectedChannels): v

$subscriptionResolver = new ChainSubscriptionResolver($resolvers);

$notification = $this->createStub(NotificationInterface::class);
$notification = self::createStub(NotificationInterface::class);
$channels = $subscriptionResolver->resolve($notification);

self::assertSame($expectedChannels, iterator_to_array($channels));
Expand Down
Loading