Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function createConnection(string $name): ConnectionInterface |
||
34 | { |
||
35 | $options = new Options(PHPUNIT_CONNECTIONS[$name]); |
||
36 | |||
37 | $this->connection = new Connection( |
||
38 | function () use ($options) { |
||
39 | return new Socket( |
||
40 | $options |
||
41 | ); |
||
42 | }, |
||
43 | new Handshake($options->getUser(), $options->getPassword(), Version::V1_0), |
||
44 | $options->getDbname() |
||
45 | ); |
||
46 | |||
47 | return $this->connection; |
||
48 | } |
||
49 | |||
59 |