Skip to content

Commit 37523eb

Browse files
authored
test: cover PsrClickHouseClient::executeQueryWithParams() (#243)
1 parent 54326fc commit 37523eb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SimPod\ClickHouseClient\Tests\Client;
6+
7+
use PHPUnit\Framework\Attributes\CoversClass;
8+
use SimPod\ClickHouseClient\Client\PsrClickHouseClient;
9+
use SimPod\ClickHouseClient\Tests\TestCaseBase;
10+
use SimPod\ClickHouseClient\Tests\WithClient;
11+
12+
#[CoversClass(PsrClickHouseClient::class)]
13+
final class PsrClickHouseClientTest extends TestCaseBase
14+
{
15+
use WithClient;
16+
17+
public function testExecuteQueryWithParams(): void
18+
{
19+
self::$client->executeQueryWithParams(
20+
'SHOW DATABASES ILIKE :database',
21+
['database' => self::$currentDbName],
22+
);
23+
24+
$this->addToAssertionCount(1);
25+
}
26+
}

0 commit comments

Comments
 (0)