ClientConfigTest

This commit is contained in:
2021-01-25 10:04:33 +03:00
parent ccb4200110
commit ec2363c064

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
use Nsq\Config\ClientConfig;
use PHPUnit\Framework\TestCase;
final class ClientConfigTest extends TestCase
{
public function testInvalidCompression(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Client cannot enable both [snappy] and [deflate]');
new ClientConfig(deflate: true, snappy: true);
}
}