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

Make an abstract class for sockets and allow specifying different socket in SourceQuery

This is a preparation for tests
This commit is contained in:
Pavel Djundik
2015-10-19 22:18:10 +03:00
parent 412bad768c
commit 9c944e23d0
4 changed files with 42 additions and 10 deletions
+2 -2
View File
@@ -109,9 +109,9 @@
*/
private $UseOldGetChallengeMethod;
public function __construct( )
public function __construct( BaseSocket $Socket = null )
{
$this->Socket = new Socket( );
$this->Socket = $Socket ?: new Socket( );
}
public function __destruct( )