Skip to content

Commit

Permalink
test: cover PsrClickHouseClient::executeQueryWithParams() (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored Jan 17, 2024
1 parent 54326fc commit 37523eb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/Client/PsrClickHouseClientTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

declare(strict_types=1);

namespace SimPod\ClickHouseClient\Tests\Client;

use PHPUnit\Framework\Attributes\CoversClass;
use SimPod\ClickHouseClient\Client\PsrClickHouseClient;
use SimPod\ClickHouseClient\Tests\TestCaseBase;
use SimPod\ClickHouseClient\Tests\WithClient;

#[CoversClass(PsrClickHouseClient::class)]
final class PsrClickHouseClientTest extends TestCaseBase
{
use WithClient;

public function testExecuteQueryWithParams(): void
{
self::$client->executeQueryWithParams(
'SHOW DATABASES ILIKE :database',
['database' => self::$currentDbName],
);

$this->addToAssertionCount(1);
}
}

0 comments on commit 37523eb

Please sign in to comment.