Skip to content

Commit 8f23177

Browse files
committed
Apply updated rector rules
1 parent c1b8cdf commit 8f23177

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

tests/Integration/TenantAwareAuthTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Kreait\Firebase\Tests\Integration;
66

7-
use Override;
87
use PHPUnit\Framework\Attributes\Group;
98

109
/**
@@ -13,7 +12,6 @@
1312
#[Group('emulator')]
1413
final class TenantAwareAuthTest extends AuthTestCase
1514
{
16-
#[Override]
1715
protected function setUp(): void
1816
{
1917
parent::setUp();

tests/Unit/Auth/GuzzleHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ protected function setUp(): void
4242
public function testItFailsOnAnUnsupportedAction(): void
4343
{
4444
$this->expectException(FailedToSignIn::class);
45-
$this->handler->handle($this->createMock(SignIn::class));
45+
$this->handler->handle($this->createStub(SignIn::class));
4646
}
4747

4848
#[AllowMockObjectsWithoutExpectations]
4949
public function testItFailsWhenGuzzleFails(): void
5050
{
5151
$client = $this->createMock(ClientInterface::class);
52-
$client->method('send')->willThrowException($this->createMock(ConnectException::class));
52+
$client->method('send')->willThrowException($this->createStub(ConnectException::class));
5353

5454
$handler = new GuzzleHandler('my-project', $client);
5555

tests/Unit/Exception/AppCheckApiExceptionConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testItConvertsAConnectException(): void
3939
{
4040
$connectException = new ConnectException(
4141
'curl error xx',
42-
$this->createMock(RequestInterface::class),
42+
$this->createStub(RequestInterface::class),
4343
);
4444

4545
$this->assertInstanceOf(ApiConnectionFailed::class, $this->converter->convertException($connectException));

tests/Unit/Exception/AuthApiExceptionConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testItConvertsAConnectException(): void
6565
{
6666
$connectException = new ConnectException(
6767
'curl error xx',
68-
$this->createMock(RequestInterface::class),
68+
$this->createStub(RequestInterface::class),
6969
);
7070

7171
$this->assertInstanceOf(ApiConnectionFailed::class, $this->converter->convertException($connectException));

tests/Unit/Exception/MessagingApiExceptionConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testItConvertsAConnectException(): void
5050
{
5151
$connectException = new ConnectException(
5252
'curl error xx',
53-
$this->createMock(RequestInterface::class),
53+
$this->createStub(RequestInterface::class),
5454
);
5555

5656
$this->assertInstanceOf(ApiConnectionFailed::class, $this->converter->convertException($connectException));

0 commit comments

Comments
 (0)