55namespace Yiisoft \Db \Pgsql \Tests ;
66
77use PDO ;
8- use Throwable ;
98use Yiisoft \Db \Connection \ConnectionInterface ;
10- use Yiisoft \Db \Exception \Exception ;
11- use Yiisoft \Db \Exception \InvalidConfigException ;
12- use Yiisoft \Db \Exception \NotSupportedException ;
9+ use Yiisoft \Db \Pgsql \Column \ColumnBuilder ;
1310use Yiisoft \Db \Pgsql \Column \ColumnFactory ;
1411use Yiisoft \Db \Pgsql \Connection ;
1512use Yiisoft \Db \Pgsql \Tests \Support \TestTrait ;
1916
2017/**
2118 * @group pgsql
22- *
23- * @psalm-suppress PropertyNotSetInConstructor
2419 */
2520final class ConnectionTest extends CommonConnectionTest
2621{
2722 use TestTrait;
2823
29- /**
30- * @throws Exception
31- * @throws InvalidConfigException
32- */
3324 public function testInitConnection (): void
3425 {
3526 $ db = $ this ->getConnection ();
@@ -42,10 +33,6 @@ public function testInitConnection(): void
4233 $ db ->close ();
4334 }
4435
45- /**
46- * @throws Exception
47- * @throws InvalidConfigException
48- */
4936 public function testSettingDefaultAttributes (): void
5037 {
5138 $ db = $ this ->getConnection ();
@@ -67,12 +54,6 @@ public function testSettingDefaultAttributes(): void
6754 $ db ->close ();
6855 }
6956
70- /**
71- * @throws Exception
72- * @throws InvalidConfigException
73- * @throws NotSupportedException
74- * @throws Throwable
75- */
7657 public function testTransactionIsolation (): void
7758 {
7859 $ db = $ this ->getConnection ();
@@ -103,11 +84,6 @@ public function testTransactionIsolation(): void
10384 $ db ->close ();
10485 }
10586
106- /**
107- * @throws Exception
108- * @throws InvalidConfigException
109- * @throws Throwable
110- */
11187 public function testTransactionShortcutCustom (): void
11288 {
11389 $ db = $ this ->getConnection (true );
@@ -137,6 +113,15 @@ static function (ConnectionInterface $db) {
137113 $ db ->close ();
138114 }
139115
116+ public function getColumnBuilderClass (): void
117+ {
118+ $ db = $ this ->getConnection ();
119+
120+ $ this ->assertSame (ColumnBuilder::class, $ db ->getColumnBuilderClass ());
121+
122+ $ db ->close ();
123+ }
124+
140125 public function testGetColumnFactory (): void
141126 {
142127 $ db = $ this ->getConnection ();
0 commit comments