From d6ce30970ef61ba1c2169b221de4d0abab0ebf0d Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 24 Oct 2015 22:48:02 +0300 Subject: [PATCH] Don't use consts and call GetRules --- Tests/Tests.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/Tests.php b/Tests/Tests.php index 6740d69..ad81659 100644 --- a/Tests/Tests.php +++ b/Tests/Tests.php @@ -248,12 +248,12 @@ public function testGetChallengeTwice( ) { - $this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_CHALLENGE . "\x11\x11\x11\x11" ); - $this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_RULES . "\x01\x00ayy\x00lmao\x00" ); - $this->assertEquals( [ 'ayy' => 'lmao' ], $this->SourceQuery->GetPlayers() ); + $this->Socket->Queue( "\xFF\xFF\xFF\xFF\x41\x11\x11\x11\x11" ); + $this->Socket->Queue( "\xFF\xFF\xFF\xFF\x45\x01\x00ayy\x00lmao\x00" ); + $this->assertEquals( [ 'ayy' => 'lmao' ], $this->SourceQuery->GetRules() ); - $this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_RULES . "\x01\x00wow\x00much\x00" ); - $this->assertEquals( [ 'wow' => 'much' ], $this->SourceQuery->GetPlayers() ); + $this->Socket->Queue( "\xFF\xFF\xFF\xFF\x45\x01\x00wow\x00much\x00" ); + $this->assertEquals( [ 'wow' => 'much' ], $this->SourceQuery->GetRules() ); } /**