Skip to content

Commit f805cad

Browse files
committed
Replace deprecated PHPUnit method calls
1 parent 4b2e1ad commit f805cad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Session/Storage/ReadOnlyNativeSessionStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testStartsAndClearsTheSession(): void
4949

5050
$this->handler->expects($this->once())
5151
->method('open')
52-
->with($this->isType('string'), self::SESSION_NAME)
52+
->with($this->isString(), self::SESSION_NAME)
5353
->willReturn(true);
5454

5555
$this->handler->expects($this->once())

tests/WAMP/Middleware/ParseWAMPMessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function testOnMessageForCallMessage(mixed ...$args): void
147147

148148
$this->decoratedMiddleware->expects($this->once())
149149
->method('onCall')
150-
->with($this->isInstanceOf(WAMPConnection::class), $callId, $uri, $this->isType('array'))
150+
->with($this->isInstanceOf(WAMPConnection::class), $callId, $uri, $this->isArray())
151151
->willReturnCallback(static function (Connection $connection, string $id, string $resolvedUri, array $params) use ($paramCount): void {
152152
self::assertCount($paramCount, $params);
153153
});

tests/WebSocket/Middleware/EstablishWebSocketConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function testEnableKeepAlive(): void
238238
$loop = $this->createMock(LoopInterface::class);
239239
$loop->expects($this->once())
240240
->method('addPeriodicTimer')
241-
->with(60, $this->isType('callable'))
241+
->with(60, $this->isCallable())
242242
->willReturn($this->createMock(TimerInterface::class));
243243

244244
$this->middleware->enableKeepAlive($loop, 60);

0 commit comments

Comments
 (0)