Skip to content

Commit 4f88fb0

Browse files
committed
Use actual class
1 parent 7414334 commit 4f88fb0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Tests/Tests.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,28 +82,28 @@ public function tearDown() : void
8282

8383
public function testInvalidTimeout() : void
8484
{
85-
$this->expectException( 'xPaw\SourceQuery\Exception\InvalidArgumentException' );
85+
$this->expectException( xPaw\SourceQuery\Exception\InvalidArgumentException::class );
8686
$SourceQuery = new SourceQuery( );
8787
$SourceQuery->Connect( '', 2, -1 );
8888
}
8989

9090
public function testNotConnectedGetInfo() : void
9191
{
92-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
92+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
9393
$this->SourceQuery->Disconnect();
9494
$this->SourceQuery->GetInfo();
9595
}
9696

9797
public function testNotConnectedPing() : void
9898
{
99-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
99+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
100100
$this->SourceQuery->Disconnect();
101101
$this->SourceQuery->Ping();
102102
}
103103

104104
public function testNotConnectedGetPlayers() : void
105105
{
106-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
106+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
107107
$this->SourceQuery->Disconnect();
108108
$this->SourceQuery->GetPlayers();
109109
}
@@ -113,28 +113,28 @@ public function testNotConnectedGetPlayers() : void
113113
*/
114114
public function testNotConnectedGetRules() : void
115115
{
116-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
116+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
117117
$this->SourceQuery->Disconnect();
118118
$this->SourceQuery->GetRules();
119119
}
120120

121121
public function testNotConnectedSetRconPassword() : void
122122
{
123-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
123+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
124124
$this->SourceQuery->Disconnect();
125125
$this->SourceQuery->SetRconPassword('a');
126126
}
127127

128128
public function testNotConnectedRcon() : void
129129
{
130-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
130+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
131131
$this->SourceQuery->Disconnect();
132132
$this->SourceQuery->Rcon('a');
133133
}
134134

135135
public function testRconWithoutPassword() : void
136136
{
137-
$this->expectException( 'xPaw\SourceQuery\Exception\SocketException' );
137+
$this->expectException( xPaw\SourceQuery\Exception\SocketException::class );
138138
$this->SourceQuery->Rcon('a');
139139
}
140140

@@ -178,7 +178,7 @@ public function InfoProvider() : array
178178
*/
179179
public function testBadGetInfo( string $Data ) : void
180180
{
181-
$this->expectException( 'xPaw\SourceQuery\Exception\InvalidPacketException' );
181+
$this->expectException( xPaw\SourceQuery\Exception\InvalidPacketException::class );
182182
$this->Socket->Queue( $Data );
183183

184184
$this->SourceQuery->GetInfo();
@@ -189,7 +189,7 @@ public function testBadGetInfo( string $Data ) : void
189189
*/
190190
public function testBadGetChallengeViaPlayers( string $Data ) : void
191191
{
192-
$this->expectException( 'xPaw\SourceQuery\Exception\InvalidPacketException' );
192+
$this->expectException( xPaw\SourceQuery\Exception\InvalidPacketException::class );
193193
$this->Socket->Queue( $Data );
194194

195195
$this->SourceQuery->GetPlayers();
@@ -200,7 +200,7 @@ public function testBadGetChallengeViaPlayers( string $Data ) : void
200200
*/
201201
public function testBadGetPlayersAfterCorrectChallenge( string $Data ) : void
202202
{
203-
$this->expectException( 'xPaw\SourceQuery\Exception\InvalidPacketException' );
203+
$this->expectException( xPaw\SourceQuery\Exception\InvalidPacketException::class );
204204
$this->Socket->Queue( "\xFF\xFF\xFF\xFF\x41\x11\x11\x11\x11" );
205205
$this->Socket->Queue( $Data );
206206

@@ -212,7 +212,7 @@ public function testBadGetPlayersAfterCorrectChallenge( string $Data ) : void
212212
*/
213213
public function testBadGetRulesAfterCorrectChallenge( string $Data ) : void
214214
{
215-
$this->expectException( 'xPaw\SourceQuery\Exception\InvalidPacketException' );
215+
$this->expectException( xPaw\SourceQuery\Exception\InvalidPacketException::class );
216216
$this->Socket->Queue( "\xFF\xFF\xFF\xFF\x41\x11\x11\x11\x11" );
217217
$this->Socket->Queue( $Data );
218218

0 commit comments

Comments
 (0)