Skip to content

Commit c3f4bd5

Browse files
authored
Upgrade phpunit to 9.4 (#2617)
1 parent b96271b commit c3f4bd5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"friendsofphp/php-cs-fixer": "^2.9",
2828
"malukenho/docheader": "^0.1.6",
2929
"mockery/mockery": "^1.0",
30-
"phpunit/phpunit": "^7.0"
30+
"phpunit/phpunit": "^9.4"
3131
},
3232
"suggest": {
3333
},

tests/ClientTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
*/
2222
class ClientTest extends TestCase
2323
{
24-
/**
25-
* @expectedException \Hyperf\WebSocketClient\Exception\ConnectException
26-
*/
2724
public function testClientConnectFailed()
2825
{
26+
$this->expectException(\Hyperf\WebSocketClient\Exception\ConnectException::class);
27+
2928
new Client(new Uri('ws://172.168.1.1:9522'));
3029
}
3130
}

0 commit comments

Comments
 (0)