Files
nsqphp/tests/ClientConfigTest.php
2021-01-25 10:16:29 +03:00

18 lines
420 B
PHP

<?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);
}
}