1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-16 13:33:14 +02:00

Rename SocketType -> EngineType.

This commit is contained in:
Anthony Birkett
2021-06-01 21:50:37 +01:00
parent 71bdac6f9d
commit da68be0fb1
7 changed files with 26 additions and 19 deletions
+3 -3
View File
@@ -3,12 +3,12 @@
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use xPaw\SourceQuery\EngineType;
use xPaw\SourceQuery\Exception\AuthenticationException;
use xPaw\SourceQuery\Exception\InvalidArgumentException;
use xPaw\SourceQuery\Exception\InvalidPacketException;
use xPaw\SourceQuery\Exception\SocketException;
use xPaw\SourceQuery\Rcon\TestableRcon;
use xPaw\SourceQuery\Socket\SocketType;
use xPaw\SourceQuery\Socket\TestableSocket;
use xPaw\SourceQuery\SourceQuery;
@@ -140,8 +140,8 @@ final class Tests extends TestCase
public function testGetInfo(string $rawInput, array $expectedOutput): void
{
$socketType = isset($expectedOutput['IsMod'])
? SocketType::GOLDSOURCE
: SocketType::SOURCE;
? EngineType::GOLDSOURCE
: EngineType::SOURCE;
$socket = new TestableSocket($socketType);
$sourceQuery = $this->create($socket);