1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 13:03:34 +02:00

Add RCON non connected tests

This commit is contained in:
Pavel Djundik
2015-10-24 16:21:01 +03:00
parent 613299b2bc
commit 8642079233
2 changed files with 31 additions and 0 deletions
+26
View File
@@ -125,6 +125,32 @@
$this->SourceQuery->GetRules();
}
/**
* @expectedException xPaw\SourceQuery\Exception\SocketException
*/
public function testNotConnectedSetRconPassword()
{
$this->SourceQuery->Disconnect();
$this->SourceQuery->SetRconPassword('a');
}
/**
* @expectedException xPaw\SourceQuery\Exception\SocketException
*/
public function testNotConnectedRcon()
{
$this->SourceQuery->Disconnect();
$this->SourceQuery->Rcon('a');
}
/**
* @expectedException xPaw\SourceQuery\Exception\SocketException
*/
public function testRconWithoutPassword()
{
$this->SourceQuery->Rcon('a');
}
/**
* @dataProvider InfoProvider
*/