2017-06-15 05:46:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Postgres\Test;
|
|
|
|
|
2017-06-21 05:17:53 +02:00
|
|
|
use Amp\CancellationToken;
|
2017-06-15 05:46:25 +02:00
|
|
|
use Amp\Postgres\PqConnection;
|
2017-06-21 05:17:53 +02:00
|
|
|
use Amp\Promise;
|
2018-07-01 19:33:12 +02:00
|
|
|
use Amp\Sql\ConnectionConfig;
|
2017-06-15 05:46:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @requires extension pq
|
|
|
|
*/
|
2018-07-01 19:33:12 +02:00
|
|
|
class PqConnectTest extends AbstractConnectTest
|
|
|
|
{
|
|
|
|
public function connect(ConnectionConfig $connectionConfig, CancellationToken $token = null): Promise
|
|
|
|
{
|
|
|
|
return PqConnection::connect($connectionConfig, $token);
|
2017-06-15 05:46:25 +02:00
|
|
|
}
|
|
|
|
}
|