Fix: get default settings from real object
This commit is contained in:
@ -25,23 +25,7 @@ final class ClientConfigTest extends TestCase
|
|||||||
|
|
||||||
public function array(): Generator
|
public function array(): Generator
|
||||||
{
|
{
|
||||||
$default = [
|
$default = get_object_vars(new ClientConfig());
|
||||||
'authSecret' => null,
|
|
||||||
'connectTimeout' => 10,
|
|
||||||
'maxAttempts' => 0,
|
|
||||||
'tcpNoDelay' => false,
|
|
||||||
'featureNegotiation' => true,
|
|
||||||
'clientId' => '',
|
|
||||||
'deflate' => false,
|
|
||||||
'deflateLevel' => 6,
|
|
||||||
'heartbeatInterval' => 30000,
|
|
||||||
'hostname' => gethostname(),
|
|
||||||
'msgTimeout' => 60000,
|
|
||||||
'sampleRate' => 0,
|
|
||||||
'tls' => false,
|
|
||||||
'snappy' => false,
|
|
||||||
'userAgent' => 'nsqphp/dev-main',
|
|
||||||
];
|
|
||||||
|
|
||||||
yield 'Empty array' => [[], $default];
|
yield 'Empty array' => [[], $default];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user